From: Eric Sandeen Date: Sat, 9 May 2020 17:09:38 +0000 (-0400) Subject: xfs_io: copy_range can take up to 8 arguments X-Git-Tag: xfsprogs-5.7-fixes_2020-06-25~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baed08ddc61633642d570a89d110a8c8780d614a;p=thirdparty%2Fxfsprogs-dev.git xfs_io: copy_range can take up to 8 arguments If we use the "-f N" variant for the source file specification, we will have up to 8 total arguments. Signed-off-by: Eric Sandeen Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- diff --git a/io/copy_file_range.c b/io/copy_file_range.c index 685250471..d154fa765 100644 --- a/io/copy_file_range.c +++ b/io/copy_file_range.c @@ -179,7 +179,7 @@ copy_range_init(void) copy_range_cmd.name = "copy_range"; copy_range_cmd.cfunc = copy_range_f; copy_range_cmd.argmin = 1; - copy_range_cmd.argmax = 7; + copy_range_cmd.argmax = 8; copy_range_cmd.flags = CMD_NOMAP_OK | CMD_FOREIGN_OK; copy_range_cmd.args = _("[-s src_off] [-d dst_off] [-l len] src_file | -f N"); copy_range_cmd.oneline = _("Copy a range of data between two files");