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 <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
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);
.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
.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