]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs_io: copy_range can take up to 8 arguments
authorEric Sandeen <sandeen@redhat.com>
Sat, 9 May 2020 17:09:38 +0000 (13:09 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Sat, 9 May 2020 17:09:38 +0000 (13:09 -0400)
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 <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
io/copy_file_range.c

index 685250471020fcdef38eca22083cf856922e1f0d..d154fa7657898148165877bace2b1be292556a94 100644 (file)
@@ -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");