From: Darrick J. Wong Date: Thu, 12 Jan 2017 20:12:41 +0000 (-0600) Subject: xfs_io: fix the minimum arguments to the reflink command X-Git-Tag: v4.10.0-rc1~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bd6599f2d02fb9150492ba5f6b8c06d47d70987;p=thirdparty%2Fxfsprogs-dev.git xfs_io: fix the minimum arguments to the reflink command 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 Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- diff --git a/io/reflink.c b/io/reflink.c index 11b8fb4da..f00831903 100644 --- a/io/reflink.c +++ b/io/reflink.c @@ -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 =