[PATCH] extend sparse file support

David Disseldorp ddiss at suse.de
Wed Mar 4 03:27:02 MST 2015


On Thu, 26 Feb 2015 01:40:09 +0100, David Disseldorp wrote:

> This patch-set adds support for the SMB2 FSCTL_QUERY_ALLOCATED_RANGES and
> FSCTL_SET_ZERO_DATA ioctls.
> 
> FSCTL_SET_ZERO_DATA offers a mechanism for clients to request that the
> server zero a range within a file. On a sparse file this range can be
> deallocated by the underlying filesystem. This ioctl is implemented in
> Samba using falloc() with the FALLOC_FL_PUNCH_HOLE flag.
> 
> Clients can discover allocated and sparse file ranges using the
> FSCTL_QUERY_ALLOCATED_RANGES ioctl. This ioctl is implemented in Samba
> using the SEEK_DATA / SEEK_HOLE lseek() whence values.
> 
> Feedback appreciated.
> 
> Cheers, David
> 
> --
> 
> https://git.samba.org/?p=ddiss/samba.git;a=shortlog;h=refs/heads/viel_sparse

Ping, did this make it onto someone's queue?


More information about the samba-technical mailing list