diff mbox series

xfs_io: copy_range can take up to 8 arguments

Message ID 08c6de7b-4caf-1162-29e5-94d8dfe959d6@redhat.com (mailing list archive)
State Accepted
Headers show
Series xfs_io: copy_range can take up to 8 arguments | expand

Commit Message

Eric Sandeen April 30, 2020, 9:41 p.m. UTC
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>
---

Comments

Christoph Hellwig May 1, 2020, 8:07 a.m. UTC | #1
On Thu, Apr 30, 2020 at 04:41:55PM -0500, Eric Sandeen wrote:
> 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>

Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>
diff mbox series

Patch

diff --git a/io/copy_file_range.c b/io/copy_file_range.c
index 68525047..d154fa76 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");