]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
fideduperange.2: Fix the discussion of maximum sizes
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 23 Nov 2016 04:48:16 +0000 (20:48 -0800)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 26 Nov 2016 13:31:26 +0000 (14:31 +0100)
Fix the discussion of the limitations on the dest_count and
src_length parameters to the fideduperange ioctl() to reflect
what's actually in the kernel.

Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
man2/ioctl_fideduperange.2

index 2112d10ef8413d576f41d6355f6c8ceb17eaea64..057229d77a84d1d7aa326cd2e0acde86ab61a7e8 100644 (file)
@@ -95,7 +95,7 @@ struct file_dedupe_range_info {
 .in
 
 Each deduplication operation targets
-.IR length
+.IR src_length
 bytes in file descriptor
 .IR dest_fd
 at offset
@@ -108,8 +108,15 @@ During the call,
 must be open for reading and
 .IR dest_fd
 must be open for writing.
-For any call to this ioctl, there may not be more than 65,536
-requests attached; each request may not exceed 16MiB.
+The combined size of the struct
+.IR file_dedupe_range
+and the struct
+.IR file_dedupe_range_info
+array must not exceed the system page size.
+The maximum size of
+.IR src_length
+is filesystem dependent and is typically 16MiB.
+This limit will be enforced silently by the filesystem.
 By convention, the storage used by
 .IR src_fd
 is mapped into
@@ -144,6 +151,13 @@ is set to indicate the error.
 .SH ERRORS
 Error codes can be one of, but are not limited to, the following:
 .TP
+.B ENOMEM
+The kernel was unable to allocate sufficient memory to perform the
+operation or
+.IR dest_count
+is so large that the input argument description spans more than a single
+page of memory.
+.TP
 .B EBADF
 .IR src_fd
 is not open for reading;