[PATCH v2 0/9] add [GET/SET]_COMPRESSION ioctl support
David Disseldorp
ddiss at samba.org
Wed Sep 18 04:42:41 CEST 2013
This patch series adds support for the FSCTL_GET_COMPRESSION and
FSCTL_SET_COMPRESSION ioctls, as well as the reporting of the current
compression state via the FILE_ATTRIBUTE_COMPRESSED flag.
Hooks are added to the btrfs VFS module, which translates such requests
into corresponding FS_IOC_GETFLAGS and FS_IOC_SETFLAGS ioctls.
Changes since v1 following feedback from Jeremy (thanks Jeremy!):
- Only use smb_fname and fsp args with GET_COMPRESSION. The smb_fname
argument is only needed for the dosmode() code-path, fsp is used
everywhere else.
- Add an extra SetInfo(FILE_ATTRIBUTE_COMPRESSED) test.
Cheers, David
==
docs-xml/manpages/vfs_full_audit.8.xml | 2 ++
examples/VFS/skel_opaque.c | 19 ++++++++++++++++++
examples/VFS/skel_transparent.c | 21 ++++++++++++++++++++
source3/include/vfs.h | 19 ++++++++++++++++++
source3/include/vfs_macros.h | 12 ++++++++++-
source3/modules/vfs_btrfs.c | 131 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
source3/modules/vfs_default.c | 19 ++++++++++++++++++
source3/modules/vfs_full_audit.c | 40 +++++++++++++++++++++++++++++++++++++
source3/modules/vfs_time_audit.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++
source3/smbd/dosmode.c | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------
source3/smbd/open.c | 12 +++++++++++
source3/smbd/smb2_ioctl_filesys.c | 120 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
source3/smbd/vfs.c | 21 ++++++++++++++++++++
source3/wscript | 2 +-
source4/torture/smb2/ioctl.c | 144 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------
15 files changed, 677 insertions(+), 28 deletions(-)
More information about the samba-technical
mailing list