vfs: add [GET/SET]_COMPRESSION hooks
authorDavid Disseldorp <ddiss@samba.org>
Mon, 18 Nov 2013 13:54:30 +0000 (14:54 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 22 Nov 2013 16:56:45 +0000 (08:56 -0800)
commitd8d5d4c7428683da04fa4c8b344504e7044f9b1c
tree5ce00faa4dbb6113f2c6d18ae312dd6dc5bc39fd
parent2b435ad4b45ec39b0cf70f55699daba3bcfcee08
vfs: add [GET/SET]_COMPRESSION hooks

The VFS interfaces are sychronous, as the operations only modify
meta-data.
These hooks are dependent on support for transparent compression by the
underlying filesystem - vfs_default returns INVALID_DEVICE_REQUEST.
Support for other filesystems providing transparent comression, such as
Btrfs and ZFS, can be added in future.

The get_compression function takes fsp and smb_fname arguments. The
smb_fname argument is needed due to the current dosmode() code-path.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
docs-xml/manpages/vfs_full_audit.8.xml
examples/VFS/skel_opaque.c
examples/VFS/skel_transparent.c
source3/include/vfs.h
source3/include/vfs_macros.h
source3/modules/vfs_default.c
source3/modules/vfs_full_audit.c
source3/modules/vfs_time_audit.c
source3/smbd/vfs.c