Skip to contentSkip to conversation

xfs_io: add missed inode command into man page

PATCH Superseded Zorro Lang 3 participants 4 messages Apr 20, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Zorro Lang

author
#0 lore raw

PATCH 1/1 xfs_io: add missed inode command into man page

There's an "inode" command in xfs_io, it's used to query physical information about an inode. But there's not any information about it in xfs_io and other related man pages. So document this command in the xfs_io man page now.

---
 man/man8/xfs_io.8 | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
man/man8/xfs_io.8 +17 -0
index 19e1ae4..ceb6cf4 100644
@@ -650,6 +650,23 @@ sec uses UNIX timestamp notation and is the seconds elapsed since
 nsec is the nanoseconds since the sec. This value needs to be in
 the range 0-999999999 with UTIME_NOW and UTIME_OMIT being exceptions.
 Each (sec, nsec) pair constitutes a single timestamp value.
+.RE
+.PD
+.TP
+.BI " inode [ [ -n ] " number " ] [ -v ]"
+The inode command querys physical information about an inode, it
+returns 1 if any inode number greater than 32 bits exists in the
+filesystem, or 0 if none exist by default. The
+.I number
+is used to specify an inode number, then inode command returns this
+inode number if it's in use, or 0 if not. But if use
+.B \-n
+with
+.I number
+, the next used inode number after this number will be returned, or 0
+if can't find the next one.
+.B \-v
+for verbose mode, the inode number's size in bits will be displayed.
 
 .SH MEMORY MAPPED I/O COMMANDS
 .TP
Signature · 1 line
2.7.4
#1 lore raw
Quoted 15 lines · Zorro Lang

There's an "inode" command in xfs_io, it's used to query physical information about an inode. But there's not any information about it in xfs_io and other related man pages. So document this command in the xfs_io man page now.

---
 man/man8/xfs_io.8 | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
man/man8/xfs_io.8 +0 -0
index 19e1ae4..ceb6cf4 100644

man/man8/xfs_io.8 sec uses UNIX timestamp notation and is the seconds elapsed since · line 657

Quoted 8 lines
man/man8/xfs_io.8 +5 -0
@@ -650,6 +650,23 @@ sec uses UNIX timestamp notation and is the seconds elapsed since
 nsec is the nanoseconds since the sec. This value needs to be in
 the range 0-999999999 with UTIME_NOW and UTIME_OMIT being exceptions.
 Each (sec, nsec) pair constitutes a single timestamp value.
+.RE
+.PD
+.TP
+.BI " inode [ [ -n ] " number " ] [ -v ]"
+The inode command querys physical information about an inode, it

"queries"

man/man8/xfs_io.8 sec uses UNIX timestamp notation and is the seconds elapsed since · line 658

Quoted 1 line
man/man8/xfs_io.8 +1 -0
+returns 1 if any inode number greater than 32 bits exists in the

Technically, it returns 1 if any inode number would overflow 32 bits, which is to say that it returns 1 if any inode number is greater than 2^32-1.

man/man8/xfs_io.8 sec uses UNIX timestamp notation and is the seconds elapsed since · line 659

Quoted 1 line
man/man8/xfs_io.8 +1 -0
+filesystem, or 0 if none exist by default. The

You could leave out "by default".

man/man8/xfs_io.8 sec uses UNIX timestamp notation and is the seconds elapsed since · line 662

Quoted 3 lines
man/man8/xfs_io.8 +3 -0
+.I number
+is used to specify an inode number, then inode command returns this
+inode number if it's in use, or 0 if not. But if use

"If an inode /number/ is given, this command returns that inode number if the inode is in use, or zero if not."?

man/man8/xfs_io.8 sec uses UNIX timestamp notation and is the seconds elapsed since · line 667

Quoted 5 lines
man/man8/xfs_io.8 +5 -0
+.B \-n
+with
+.I number
+, the next used inode number after this number will be returned, or 0
+if can't find the next one.

"If -n is given with /number/, the next inode number in use will be returned, or zero if there aren't any more"?

man/man8/xfs_io.8 sec uses UNIX timestamp notation and is the seconds elapsed since · line 669

Quoted 2 lines
man/man8/xfs_io.8 +2 -0
+.B \-v
+for verbose mode, the inode number's size in bits will be displayed.

(What a strange command...)

--D

Quoted 10 lines
man/man8/xfs_io.8 +0 -0
 .SH MEMORY MAPPED I/O COMMANDS
 .TP
Signature · 6 lines
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
Quoted 29 lines · Darrick J. Wong
Quoted 15 lines · Zorro Lang

There's an "inode" command in xfs_io, it's used to query physical information about an inode. But there's not any information about it in xfs_io and other related man pages. So document this command in the xfs_io man page now.

---
 man/man8/xfs_io.8 | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
man/man8/xfs_io.8 +0 -0
index 19e1ae4..ceb6cf4 100644

man/man8/xfs_io.8 sec uses UNIX timestamp notation and is the seconds elapsed since · line 657

Quoted 8 lines
man/man8/xfs_io.8 +5 -0
@@ -650,6 +650,23 @@ sec uses UNIX timestamp notation and is the seconds elapsed since
 nsec is the nanoseconds since the sec. This value needs to be in
 the range 0-999999999 with UTIME_NOW and UTIME_OMIT being exceptions.
 Each (sec, nsec) pair constitutes a single timestamp value.
+.RE
+.PD
+.TP
+.BI " inode [ [ -n ] " number " ] [ -v ]"
+The inode command querys physical information about an inode, it

"queries"

man/man8/xfs_io.8 sec uses UNIX timestamp notation and is the seconds elapsed since · line 658

Quoted 1 line
man/man8/xfs_io.8 +1 -0
+returns 1 if any inode number greater than 32 bits exists in the
Quoted 7 lines

Technically, it returns 1 if any inode number would overflow 32 bits, which is to say that it returns 1 if any inode number is greater than 2^32-1.

man/man8/xfs_io.8 sec uses UNIX timestamp notation and is the seconds elapsed since · line 659

Quoted 1 line
man/man8/xfs_io.8 +1 -0
+filesystem, or 0 if none exist by default. The

You could leave out "by default".

I think that the intent here was to say that by default (i.e. with no other options given, this is what the command does - return 1 or 0 based on whether or not any any inode number exceeding 32 bits is currently in use.

Quoted 7 lines

man/man8/xfs_io.8 sec uses UNIX timestamp notation and is the seconds elapsed since · line 662

Quoted 3 lines
man/man8/xfs_io.8 +3 -0
+.I number
+is used to specify an inode number, then inode command returns this
+inode number if it's in use, or 0 if not. But if use

"If an inode /number/ is given, this command returns that inode number if the inode is in use, or zero if not."?

Quoted 11 lines

man/man8/xfs_io.8 sec uses UNIX timestamp notation and is the seconds elapsed since · line 667

Quoted 5 lines
man/man8/xfs_io.8 +5 -0
+.B \-n
+with
+.I number
+, the next used inode number after this number will be returned, or 0
+if can't find the next one.

"If -n is given with /number/, the next inode number in use will be returned, or zero if there aren't any more"?

Quoted 2 lines
man/man8/xfs_io.8 +2 -0
+.B \-v
+for verbose mode, the inode number's size in bits will be displayed.

This is how I would describe the behavior, feel free to use as much or as little as you like:

With no arguments, the inode command will return 1 or 0, indicating whether or not any inode numbers greater than 32 bits are currently in use in the filesystem.

If given an inode /number/ as an argument, the command will return /number/ or 0, depending on whether or not inode /number/ is in use.

With -n /number/, the command will return the next inode number after /number/ which is in use.

With -v, the command will also report the number of bits (32 or 64) used by the inode number printed in the result; if no inode /number/ was specified on the commandline, the maximum possible inode number in the system will be printed along with its size.

Quoted 1 line

(What a strange command...)

yup.

-Eric

Quoted 17 lines

--D

Quoted 10 lines
man/man8/xfs_io.8 +0 -0
 .SH MEMORY MAPPED I/O COMMANDS
 .TP
Signature · 6 lines
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 6 lines · Eric Sandeen
Quoted 5 lines · Darrick J. Wong
Quoted 4 lines · Zorro Lang

There's an "inode" command in xfs_io, it's used to query physical information about an inode. But there's not any information about it in xfs_io and other related man pages. So document this command in the xfs_io man page now.

Oh, I would also put this in the "other commands" section, not the "file I/O" section.

-Eric