diff options
author | David Disseldorp <ddiss@samba.org> | 2013-01-30 14:42:46 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-03-31 18:40:25 +0200 |
commit | 9d29f7ea1794380bb1a381570298f52cb4d53041 (patch) | |
tree | e9f3ba37881d5c3688cc7df3865300f260ab936b /source3/modules/wscript_build | |
parent | 5056c5a72720c9b004a2ed22dbeb5b52db56f3e5 (diff) | |
download | samba-9d29f7ea1794380bb1a381570298f52cb4d53041.tar.gz |
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>
Diffstat (limited to 'source3/modules/wscript_build')
-rw-r--r-- | source3/modules/wscript_build | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/modules/wscript_build b/source3/modules/wscript_build index 018cbe91378..da2959378ab 100644 --- a/source3/modules/wscript_build +++ b/source3/modules/wscript_build @@ -469,6 +469,14 @@ bld.SAMBA3_MODULE('vfs_btrfs', internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_btrfs'), enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_btrfs')) +bld.SAMBA3_MODULE('vfs_shell_snap', + subsystem='vfs', + source='vfs_shell_snap.c', + deps='samba-util', + init_function='', + internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_shell_snap'), + enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_shell_snap')) + bld.SAMBA3_SUBSYSTEM('perfcount', source='', deps='smbd_base') |