]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: fix the minimum arguments to the reflink command
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jan 2017 20:12:41 +0000 (14:12 -0600)
committerEric Sandeen <sandeen@redhat.com>
Thu, 12 Jan 2017 20:12:41 +0000 (14:12 -0600)
The reflink command can reflink the entirety of two files if the
offsets and lengths are not specified... but we forgot to permit
that case.

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/reflink.c

index 11b8fb4daab92f912fb28ad3daf68c2ecbac7858..f008319031a766881998f53cfd8b1634a7c4fe4e 100644 (file)
@@ -302,7 +302,7 @@ reflink_init(void)
        reflink_cmd.name = "reflink";
        reflink_cmd.altname = "rl";
        reflink_cmd.cfunc = reflink_f;
-       reflink_cmd.argmin = 4;
+       reflink_cmd.argmin = 1;
        reflink_cmd.argmax = -1;
        reflink_cmd.flags = CMD_NOMAP_OK | CMD_FOREIGN_OK;
        reflink_cmd.args =