vfs: add snapshot create/delete hooks
authorDavid Disseldorp <ddiss@samba.org>
Tue, 10 Apr 2012 01:16:57 +0000 (03:16 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 31 Mar 2015 16:40:24 +0000 (18:40 +0200)
commit67ee428467e1f49bf8d0b819280329554ef5aee6
tree0dae4ffb5748e74fa2413b19d9b43f5722a849c0
parent13fa1b8776d2280ba3d4dfc35e7134cd0aaee70f
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>
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