vfs: add snapshot create/delete hooks
authorDavid Disseldorp <ddiss@samba.org>
Tue, 10 Apr 2012 01:16:57 +0000 (03:16 +0200)
committerDavid Disseldorp <ddiss@samba.org>
Tue, 31 Mar 2015 09:30:05 +0000 (11:30 +0200)
commite9b761da225029cfd56eb60ded4295d41db6ef68
tree92504ab7408795df2625dc4a0a6225155352cb51
parent3904e0ea3e31149daaf3065a6cefbc8bf42235a5
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>
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