vfs: add vfs_shell_snap module
authorDavid Disseldorp <ddiss@samba.org>
Wed, 30 Jan 2013 13:42:46 +0000 (14:42 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 31 Mar 2015 16:40:25 +0000 (18:40 +0200)
commit9d29f7ea1794380bb1a381570298f52cb4d53041
treee9f3ba37881d5c3688cc7df3865300f260ab936b
parent5056c5a72720c9b004a2ed22dbeb5b52db56f3e5
vfs: add vfs_shell_snap module

The shell_snap VFS module plumbs into the snapshot (aka shadow-copy)
management paths used by Samba's File Server Remote VSS Protocol (FSRVP)
server.
The following shell callouts may be configured in smb.conf:

shell_snap: check path command
- Called when an FSRVP client wishes to check whether a given
  share supports snapshot create/delete requests.
- The command is called with a single <share path> argument.
- The command must return 0 if <share path> is capable of being
  snapshotted.

shell_snap: create command
- Called when an FSRVP client wishes to create a snapshot.
- The command is called with a single <share path> argument.
- The command must return 0 status if the snapshot was
  successfully taken.
- The command must output the path of the newly created snapshot
  to stdout.

shell_snap: delete command
- Called when an FSRVP client wishes to delete a snapshot.
- The command is called with <base share path> and
  <snapshot share path> arguments.
- The command must return 0 status if the snapshot was
  successfully removed.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_shell_snap.c [new file with mode: 0644]
source3/modules/wscript_build
source3/wscript