From ced40f268d4e8323cda6afac3aa97e36c87d6c17 Mon Sep 17 00:00:00 2001 From: Zirong Lang Date: Wed, 3 May 2017 14:54:00 -0500 Subject: [PATCH] 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. [sandeen: include some of djwong's edits] Signed-off-by: Zorro Lang Reviewed-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- man/man8/xfs_io.8 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/man/man8/xfs_io.8 b/man/man8/xfs_io.8 index b09a17890..7db7ffda5 100644 --- a/man/man8/xfs_io.8 +++ b/man/man8/xfs_io.8 @@ -955,6 +955,31 @@ verbose output will be printed. .RE .IP .B [NOTE: Not currently operational on Linux.] +.RE +.PD +.TP +.BI "inode [ [ -n ] " number " ] [ -v ]" +The inode command queries physical information about an inode. With +no arguments, it 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 +.I number +as an argument, the command will return the same inode +.I number +if it is in use, or 0 if not. With +.BI \-n " number" +, the next used inode number after this +.I number +will be returned, or zero if the supplied inode number is the highest one +in use. With +.B \-v +the command will also report the number of bits (32 or 64) used by the +inode +.I number +printed in the result; if no inode +.I number +was specified on the command line, the maximum possible inode number in +the system will be printed along with its size. .PD .TP .BI "set_encpolicy [ \-c " mode " ] [ \-n " mode " ] [ \-f " flags " ] [ \-v " version " ] [ " keydesc " ] -- 2.47.2