1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3
David Disseldorp 4ab0e57f10 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>
2015-02-17 03:08:07 +01:00
..
auth s3: auth: Add previously missing allocation fail check. 2015-01-14 06:24:06 +01:00
build waf: improve iconv checks 2014-01-03 05:04:44 +01:00
client s3: smbclient: Allinfo leaves the file handle open. 2015-02-10 23:28:46 +01:00
exports
groupdb mapping_tdb: add missing talloc_free in error path 2014-11-10 16:36:03 +01:00
include Remove an unused function call. 2015-02-13 23:29:53 +01:00
intl lang_tdb: don't leak lock_path or data_path onto talloc tos 2014-11-03 23:46:05 +01:00
lib lib: Use talloc_report_str 2015-02-13 23:32:07 +01:00
libads s3-libads: Fix a possible segfault in kerberos_fetch_pac(). 2015-01-07 21:55:06 +01:00
libgpo gpo: don't leak cache_path onto talloc tos 2014-10-06 19:18:05 +02:00
libnet allow net ads join accept new osServicePack parameter 2015-01-08 00:18:05 +01:00
librpc librpc: Move messaging.idl to the top level 2015-02-16 12:15:07 +01:00
libsmb libsmb: provide authinfo domain for encrypted session referrals 2015-01-21 04:29:06 +01:00
locale winbind/i18n: update Japanese pam winbind translation 2014-07-26 20:43:28 +02:00
locking leases_db: don't leak lock_path onto talloc tos 2015-01-12 19:22:30 +01:00
modules vfs_ceph: fix disk_free_fn callback 2015-02-16 18:14:02 +01:00
nmbd lib: Split out write_data[_iov] 2014-12-07 00:12:07 +01:00
pam_smbpass s3-pam_smbpass: Correctly initialize variables. 2015-01-22 22:51:59 +01:00
param s3:param: Add "smb2 leases" parameter. Default "false". 2014-12-04 05:45:10 +01:00
passdb Remove an unused function call. 2015-02-13 23:29:53 +01:00
printing printing/cups: pack requested-attributes with IPP_TAG_KEYWORD 2015-02-10 01:38:57 +01:00
profile s3:smbprofile: rewrite the internal macros 2014-11-19 20:51:37 +01:00
registry s3:registry/regfio fix some valgrind warnings 2014-12-02 22:21:06 +01:00
rpc_client s3:rpc_client: add cli_rpc_pipe_open_schannel_with_creds() helper function 2014-12-19 13:15:13 +01:00
rpc_server Update mailing list references to point at lists.samba.org 2015-02-10 07:08:28 +01:00
rpcclient samba: pass down size_t instead of int to add_string_to_array(). 2014-11-17 19:53:22 +01:00
script s3: auth - tests: Add test for "force user" being a unix-only user, not in passdb. 2015-01-14 08:46:07 +01:00
selftest selftest: Add test for joining a Samba classic DC as a BDC 2014-12-11 21:40:27 +01:00
services
smbd smbd/reply: convert free space to 16bit in dskattr handler 2015-02-17 03:08:07 +01:00
stf
torture torture3: Fix a typo 2015-01-06 00:33:09 +01:00
utils utils: Fix 'net time' segfault. 2015-01-19 06:48:05 +01:00
web swat: Remove swat. 2013-05-18 16:32:38 +02:00
winbindd winbind: Fix idmap initialization 2015-01-22 17:58:16 +01:00
.clang_complete Remove popt/iniparser from .clang_complete 2014-08-14 21:27:13 +02:00
.dmallocrc
.indent.pro
change-log
Doxyfile
mainpage.dox
smbadduser.in
wscript vfs_glusterfs: Replace eventfd with pipes, for AIO use 2015-01-21 20:40:10 +01:00
wscript_build lib: Use talloc_report_str 2015-02-13 23:32:07 +01:00
wscript_configure_system_ncurses build: fix --with-regedit to properly honour the yes/no/auto scheme 2013-05-06 18:24:58 +02:00