search for: btrfs_ioc_clone_range

Displaying 9 results from an estimated 9 matches for "btrfs_ioc_clone_range".

2016 Oct 27
2
Samba and BTRFS server-side copy
...> > > Server-side copy can be requested using smbclient, using > > > the "scopy" command. > > > > > > It's a simple: > > > > > > scopy source dest > > > > Thanks but I just tested and it doesn't trigger > > BTRFS_IOC_CLONE_RANGE. The server-side copy is working all right, > > but the file is not copied through BTRFS reflink (cp > > --reflink=auto). It is quite noticeable on large file, where it > > should be nearly instantaneous. > > > > My configuration: > > - client: Debian Stable +...
2016 Oct 27
2
Samba and BTRFS server-side copy
...tency will be > > > heavily effected by whether the FSCTL_SRV_COPYCHUNK wire request > > > byte offsets and lengths align to the Btrfs sector-size (4K by > > > default IIRC). > > > If they do align, then each chunk in the request can be mapped to > > > a BTRFS_IOC_CLONE_RANGE ioctl. Otherwise, we need to fall back to > > > a server-side local read/write. > > > > > > We should be able to provide underlying filesystem alignment > > > requirements to SMB clients via the new > > > FileFSSectorSizeInformation ioctl, but it's...
2016 Oct 27
2
Samba and BTRFS server-side copy
...135.html > with Samba and Btrfs the request latency will be > heavily effected by whether the FSCTL_SRV_COPYCHUNK wire request byte > offsets and lengths align to the Btrfs sector-size (4K by default > IIRC). > If they do align, then each chunk in the request can be mapped to a > BTRFS_IOC_CLONE_RANGE ioctl. Otherwise, we need to fall back to a > server-side local read/write. > > We should be able to provide underlying filesystem alignment > requirements to SMB clients via the new FileFSSectorSizeInformation > ioctl, but it's not currently supported by Samba. So which client...
2016 Oct 27
0
Samba and BTRFS server-side copy
...equested using smbclient, using > > > > the "scopy" command. > > > > > > > > It's a simple: > > > > > > > > scopy source dest > > > > > > Thanks but I just tested and it doesn't trigger > > > BTRFS_IOC_CLONE_RANGE. The server-side copy is working all right, > > > but the file is not copied through BTRFS reflink (cp > > > --reflink=auto). It is quite noticeable on large file, where it > > > should be nearly instantaneous. > > > > > > My configuration: > > &g...
2010 Dec 06
9
"Appending" data to the middle of a file using btrfs-specific features
...mental backups). I''ve been told that the problem is somewhat difficult to solve properly under block-based representation of data, but I was hoping that btrfs'' reflink mechanism and its space-efficient packing of small files might make it doable. A hack I can think of is to do a BTRFS_IOC_CLONE_RANGE into a new file (upto the offset), writing whatever data is required, and then doing another BTRFS_IOC_CLONE_RANGE with an offset for the rest of the original file. This can be followed by a rename() over the original file. Similarly for removing data from the middle of a file. Would this work? Wou...
2016 Oct 27
2
Samba and BTRFS server-side copy
...; > > > the "scopy" command. > > > > > > > > > > It's a simple: > > > > > > > > > > scopy source dest > > > > > > > > Thanks but I just tested and it doesn't trigger > > > > BTRFS_IOC_CLONE_RANGE. The server-side copy is working all > > > > right, but the file is not copied through BTRFS reflink (cp > > > > --reflink=auto). It is quite noticeable on large file, where it > > > > should be nearly instantaneous. > > > > > > > > My co...
2016 Oct 27
0
Samba and BTRFS server-side copy
...and Btrfs the request latency will be > > heavily effected by whether the FSCTL_SRV_COPYCHUNK wire request byte > > offsets and lengths align to the Btrfs sector-size (4K by default > > IIRC). > > If they do align, then each chunk in the request can be mapped to a > > BTRFS_IOC_CLONE_RANGE ioctl. Otherwise, we need to fall back to a > > server-side local read/write. > > > > We should be able to provide underlying filesystem alignment > > requirements to SMB clients via the new FileFSSectorSizeInformation > > ioctl, but it's not currently supported b...
2012 Apr 20
0
send/receive and clone/clone_range ioctls
...rchive. Changes are determined by the transid of inodes and the generation number of file extent items. An inode/extent is considered to be changed if the transid/generation is higher then a specified generation. While testing the code I found a problem with files where parts where cloned with the BTRFS_IOC_CLONE_RANGE ioctl. When the extents get cloned, their generation is cloned too. Which means, that even if the file was actually changed, my checks may say that it is unchanged because the extents generation numbers are lower then the specified generation number. The same problem may occur when BTRFS_IOC_CLONE...
2011 Aug 23
40
[PATCH 00/21] [RFC] Btrfs: restriper
Hello, This patch series adds an initial implementation of restriper (it''s a clever name for relocation framework that allows to do selective profile changing and selective balancing with some goodies like pausing/resuming and reporting progress to the user. Profile changing is global (per-FS) so far, per-subvolume profiles require some discussion and can be implemented in future.