Skip to contentSkip to conversation

fideduperange.2: fix the discussion of maximum sizes

PATCH Superseded Darrick J. Wong 2 participants 3 messages Nov 23, 2016

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fideduperange.2: fix the discussion of maximum sizes

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.

---
 man2/ioctl_fideduperange.2 |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
man2/ioctl_fideduperange.2 +9 -3
index 2112d10..59f0ea9 100644
@@ -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,14 @@ 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.
 By convention, the storage used by
 .IR src_fd
 is mapped into
#1 lore raw
Quoted 29 lines · Darrick J. Wong

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.

---
 man2/ioctl_fideduperange.2 |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
man2/ioctl_fideduperange.2 +2 -3
index 2112d10..59f0ea9 100644
@@ -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,14 @@ 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

man2/ioctl_fideduperange.2 During the call, · line 121

Quoted 10 lines
man2/ioctl_fideduperange.2 +7 -0
+.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.
 By convention, the storage used by
 .IR src_fd
 is mapped into

Might be worth it to clarify that the file_dedupe_range_info limit is a hard limit that will result in an error if exceeded and that the src_length limit is silently enforced. These semantics suck...

Signature · 1 line
Omar
#2 lore raw
Quoted 36 lines · Omar Sandoval
Quoted 35 lines · Darrick J. Wong

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.

---
 man2/ioctl_fideduperange.2 |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
man2/ioctl_fideduperange.2 +8 -3
index 2112d10..59f0ea9 100644
@@ -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,14 @@ 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
Quoted 8 lines

man2/ioctl_fideduperange.2 During the call, · line 121

Quoted 4 lines
man2/ioctl_fideduperange.2 +1 -0
+is filesystem dependent and is typically 16MiB.
 By convention, the storage used by
 .IR src_fd
 is mapped into

Might be worth it to clarify that the file_dedupe_range_info limit is a hard limit that will result in an error if exceeded and that the src_length limit is silently enforced. These semantics suck...

Yeah... :(

Anyway I'll post a v2 patch.

--D

Quoted 7 lines
Signature · 6 lines
-- 
Omar
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html