summaryrefslogtreecommitdiffstats
path: root/examples/VFS
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2015-02-16 19:26:23 +0100
committerJeremy Allison <jra@samba.org>2015-02-17 03:08:07 +0100
commit4ab0e57f1073e776b8832f5edc3dca04ef903fef (patch)
tree5911354bd5d149534284f692a5e10cb3cc359a52 /examples/VFS
parent2501afe08b94a514d8e2f3eeb4a2c4edc9764979 (diff)
downloadsamba-4ab0e57f1073e776b8832f5edc3dca04ef903fef.tar.gz
samba-4ab0e57f1073e776b8832f5edc3dca04ef903fef.tar.xz
samba-4ab0e57f1073e776b8832f5edc3dca04ef903fef.zip
smbd/reply: convert free space to 16bit in dskattr handler
The deprecated Core Protocol dskattr SMB_COM_QUERY_INFORMATION_DISK command provides free space information in the form of 16-bit words. Until now, this has been handled by passing the dskattr specific small_query boolean through to disk_norm() via the SMB_VFS_DISK_FREE VFS hook. disk_norm(small_query=true) then modifies the block size and free space values such that they fit in the 16-bit field. This change adds the command specific logic to the dskattr handler, so that it can be removed from the SMB_VFS_DISK_FREE()->disk_norm() code path. In doing so, it fixes dskattr request handling against opaque VFS backends that don't call disk_norm(), such as vfs_glusterfs. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'examples/VFS')
0 files changed, 0 insertions, 0 deletions