smbd/ioctl: add FSCTL_QUERY_ALLOCATED_RANGES support
authorDavid Disseldorp <ddiss@samba.org>
Thu, 19 Feb 2015 15:36:05 +0000 (16:36 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 9 Mar 2015 20:27:07 +0000 (21:27 +0100)
commit29531c55928aedc6f860555737cba99689a75d2c
tree59fb047fedc34a0ba226885a9610c00505bb0020
parent76fff2befe6613416e80f891ccb1521609e19169
smbd/ioctl: add FSCTL_QUERY_ALLOCATED_RANGES support

This change implements support for FSCTL_QUERY_ALLOCATED_RANGES using
the SEEK_HOLE/SEEK_DATA functionality of lseek().

Files marked non-sparse are always reported by the ioctl as fully
allocated, regardless of any potential "strict allocate = no" savings.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_ioctl_filesys.c