1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/examples/VFS
David Disseldorp d8d5d4c742 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>
2013-11-22 08:56:45 -08:00
..
README examples/VFS: fix a typo in the README 2011-10-08 01:42:33 +02:00
shadow_copy_test.c examples/VFS: don't use smbd/proto.h 2012-06-06 10:18:38 +02:00
skel_opaque.c vfs: add [GET/SET]_COMPRESSION hooks 2013-11-22 08:56:45 -08:00
skel_transparent.c vfs: add [GET/SET]_COMPRESSION hooks 2013-11-22 08:56:45 -08:00
wscript_build s3-waf: make sure we build example vfs modules with --enable-developer. 2011-10-11 21:22:55 +02:00

README for Samba Virtual File System (VFS) Example
===================================================

This directory contains skeleton VFS modules.  When used,
this module simply passes all requests back to the disk functions
(i.e it operates as a passthrough filter).  It should be
useful as a starting point for developing new VFS
modules. 

Please look at skel_opaque.c when you want your module to provide
final functions, like a database filesystem.

Please look at skel_transparent.c when you want your module to provide
passthrough functions, like audit modules. 

Please read the VFS chapter in the HOWTO collection for general help 
on the usage of VFS modules.

Further documentation on writing VFS modules for Samba can be found in
Samba Developers Guide.