]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: clarify -c in bmap documentation
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 22 Jun 2018 19:15:42 +0000 (14:15 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 22 Jun 2018 19:15:42 +0000 (14:15 -0500)
The bmap -c parameter displays the cow fork information for a file if
the kernel was built with CONFIG_XFS_DEBUG=y.  Since xfs_bmap doesn't
support it and it doesn't work generally, remove it from the manpages.
However, xfstests relies on the -c command to be documented in the help
screen so leave it there with a warning about its use.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
io/bmap.c
man/man8/xfs_io.8

index 2e4ff7b2343219028a218a4e6bf22f5a12573139..345f276e0db78bb3d60ee03d5b701aceaf6f6702 100644 (file)
--- a/io/bmap.c
+++ b/io/bmap.c
@@ -43,6 +43,7 @@ bmap_help(void)
 " All the file offsets and disk blocks are in units of 512-byte blocks.\n"
 " -a -- prints the attribute fork map instead of the data fork.\n"
 " -c -- prints the copy-on-write fork map instead of the data fork.\n"
+"       This works only if the kernel was compiled in debug mode.\n"
 " -d -- suppresses a DMAPI read event, offline portions shown as holes.\n"
 " -e -- print delayed allocation extents.\n"
 " -l -- also displays the length of each extent in 512-byte blocks.\n"
index d9fede248fdb7bf48a987e9c7e70b83781eb03c2..dd91589bd145862a7e9b62236e2c6faa7d5a56e1 100644 (file)
@@ -315,7 +315,7 @@ See the
 .B pwrite
 command.
 .TP
-.BI "bmap [ \-acdelpv ] [ \-n " nx " ]"
+.BI "bmap [ \-adelpv ] [ \-n " nx " ]"
 Prints the block mapping for the current open file. Refer to the
 .BR xfs_bmap (8)
 manual page for complete documentation.