allow a length of 1,000,000 bytes to be passed as it is equal to the
file lengths and would be internally extended to the end of the block
(1,015,808), allowing one set of extents to be shared completely between
the full length of both files.
Signed-off-by: Matt Robinson
---
fs/btrfs/ioctl.c | 21
; the clone ioctl (which extent-same calls) has no such restriction.
>
> As Matt mentioned, clone_range seems quite happy to accept a partial block
> at EOF. cp --reflink would be much harder to use if it did not.
>
> On Mon, Mar 02, 2015 at 08:59:11PM +, Matt Robinson wrote:
>
Hi David,
Have you had a chance to look at this? Am very happy to answer
further questions, adjust my implementation, provide a different kind
of test case, etc.
Many Thanks,
Matt
On 28 January 2015 at 19:46, Matt Robinson wrote:
> On 28 January 2015 at 12:55, David Sterba wrote:
>&g
On 28 January 2015 at 12:55, David Sterba wrote:
> On Mon, Jan 26, 2015 at 06:05:51PM +0000, Matt Robinson wrote:
>> It is not currently possible to deduplicate the last block of files
>> whose size is not a multiple of the block size, as the btrfs_extent_same
>> ioctl retu
.
Signed-off-by: Matt Robinson
---
fs/btrfs/ioctl.c | 21 ++---
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index d49fe8a..a407d8a 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2871,14 +2871,16 @@ static int