From: Darrick J. Wong Date: Thu, 12 Jan 2017 20:12:41 +0000 (-0600) Subject: xfs_io: fix some documentation problems X-Git-Tag: v4.10.0-rc1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c327e1f9b00ea6107bdb1da9b2cbd452fb7247ee;p=thirdparty%2Fxfsprogs-dev.git xfs_io: fix some documentation problems Describe the numberless (i.e. "reflink the whole file") behavior in the xfs_io help system and since the clone/dedupe ioctls were promoted to the VFS before XFS reflink landed, mention those in the manpage. Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- diff --git a/io/reflink.c b/io/reflink.c index f00831903..4c822b39d 100644 --- a/io/reflink.c +++ b/io/reflink.c @@ -306,9 +306,9 @@ reflink_init(void) reflink_cmd.argmax = -1; reflink_cmd.flags = CMD_NOMAP_OK | CMD_FOREIGN_OK; reflink_cmd.args = -_("infile src_off dst_off len"); +_("infile [src_off dst_off len]"); reflink_cmd.oneline = - _("reflinks a number of bytes at a specified offset"); + _("reflinks an entire file, or a number of bytes at a specified offset"); reflink_cmd.help = reflink_help; add_command(&reflink_cmd); diff --git a/man/man8/xfs_io.8 b/man/man8/xfs_io.8 index fd6f41d50..db7fa904f 100644 --- a/man/man8/xfs_io.8 +++ b/man/man8/xfs_io.8 @@ -528,7 +528,7 @@ both data and holes are displayed together or performing a recusively display. .TP .BI "reflink [ \-C ] [ \-q ] src_file [src_offset dst_offset length]" On filesystems that support the -.B XFS_IOC_CLONE_RANGE +.B FICLONERANGE or .B BTRFS_IOC_CLONE_RANGE ioctls, map @@ -557,7 +557,7 @@ Do not print timing statistics at all. .TP .BI "dedupe [ \-C ] [ \-q ] src_file src_offset dst_offset length" On filesystems that support the -.B XFS_IOC_FILE_EXTENT_SAME +.B FIDEDUPERANGE or .B BTRFS_IOC_FILE_EXTENT_SAME ioctls, map