[PATCH] extend sparse file support

Jeremy Allison jra at samba.org
Wed Mar 4 15:22:38 MST 2015


On Wed, Mar 04, 2015 at 11:27:02AM +0100, David Disseldorp wrote:
> 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?

It's on my queue but it'd be much easier as a patchset
in one email (hint hint :-).


More information about the samba-technical mailing list