summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2012-09-04 15:29:58 +0200
committerJeremy Allison <jra@samba.org>2015-03-31 18:40:25 +0200
commit9b5b46a0921aa86f6b7da77e5735b7386e67af05 (patch)
treeb5e27ce97b6b29206a58f5f5fc57c38af06b23ce /source3/wscript
parent9f95038f9b18084c91c0e12d48629f8c575e73ec (diff)
downloadsamba-9b5b46a0921aa86f6b7da77e5735b7386e67af05.tar.gz
vfs_btrfs: add snapshot create/delete calls
The "btrfs: manipulate snapshots" smb.conf parameter is disabled by default, to encourage use of, and pass requests through to, the vfs_snapper module. When enabled, issue BTRFS_IOC_SNAP_CREATE_V2 and BTRFS_IOC_SNAP_DESTROY ioctls accordingly. The ioctls are issued as root, so rely on permission checks in the calling FSRVP server process. Base share paths must exist as btrfs subvolumes in order to be supported for snapshot operations. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/wscript b/source3/wscript
index 818cdad817d..4029813beb2 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -1634,7 +1634,8 @@ main() {
if conf.CONFIG_SET('HAVE_GPFS'):
default_shared_modules.extend(TO_LIST('vfs_gpfs'))
- if conf.CONFIG_SET('HAVE_LINUX_IOCTL'):
+ if (conf.CONFIG_SET('HAVE_LINUX_IOCTL')
+ and conf.CONFIG_SET('HAVE_BASENAME') and conf.CONFIG_SET('HAVE_DIRNAME')):
default_shared_modules.extend(TO_LIST('vfs_btrfs'))
if conf.CONFIG_SET('SAMBA_FAM_LIBS'):