1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/examples/VFS
David Disseldorp 67ee428467 vfs: add snapshot create/delete hooks
This change adds three new VFS hooks covering snapshot manipulation:
- snap_check_path
  Check whether a path supports snapshots.
- snap_create
  Request the creation of a snapshot of the provided path.
- snap_delete
  Request the deletion of a snapshot.

These VFS call-outs will be used in future by Samba's File Server Remote
VSS Protocol (FSRVP) server.

MS-FSVRP states:
  At any given time, Windows servers allow only one shadow copy set to
  be going through the creation process.
Therefore, only provide synchronous hooks for now, which can be
converted to asynchronous _send/_recv functions when the corresponding
DCE/RPC server infrastructure is in place.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2015-03-31 18:40:24 +02: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 snapshot create/delete hooks 2015-03-31 18:40:24 +02:00
skel_transparent.c vfs: add snapshot create/delete hooks 2015-03-31 18:40:24 +02: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.