[PATCHSET] support FSCTL_DUPLICATE_EXTENTS_TO_FILE
ddiss at suse.de
Thu May 4 15:30:35 UTC 2017
Please find attached a patchset from Aurélien and myself, which adds
support for FSCTL_DUPLICATE_EXTENTS_TO_FILE - a new reflink/clone FSCTL
supported on Windows Server 2016 shares backed by ReFS.
A couple of things that I'm still a little unsure about:
- It might be cleaner to move the locking calls out of the copy-chunk
VFS function (drop VFS_COPY_CHUNK_FL_IGNORE_LOCKS), and move them
into fsctl_srv_copychunk_loop(). Thoughts?
- The server behaviour for success on truncated clone (where the
dest file's allocation size is less than the size of the clone) seems
prone to races, especially given that the operation ignores locks.
+ See test_ioctl_dup_extents_len_beyond_dest(). Dochelp are aware of
+ There's not much we can do here, as we need to match Windows Server
2016 + ReFS behaviour.
Many thanks to the Microsoft Protocol Open Specifications Team for
clarifying a number of doc/wire inconsistencies.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 41035 bytes
Desc: not available
More information about the samba-technical