vfs: add vfs_shell_snap module
authorDavid Disseldorp <ddiss@samba.org>
Wed, 30 Jan 2013 13:42:46 +0000 (14:42 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Tue, 14 May 2013 22:49:29 +0000 (00:49 +0200)
commitd03f26d10a5097bc6b2fee48caf36f2683654e81
treec942ef1b6121348989a06df550651b0b5983f41b
parent97e4b3e0451d039c686eb39c2cfa2b2282cf9431
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.
source3/Makefile.in
source3/configure.in
source3/modules/vfs_shell_snap.c [new file with mode: 0644]
source3/modules/wscript_build
source3/wscript