In order to expose and manage snapshots as previous versions from
Windows we make use of the existing ceph_snapshots vfs module from
Samba. vfs_ceph_snapshots by default assumes the snap directory to
be named ".snap" with an option to configure a different name to
match the value for 'client_snapdir' parameter for CephFS client.
We follow the default behaviour to avoid further complications on
a live running cluster and thereby recommend to keep the default
for 'client_snapdir'. This limitation may slightly change in future
to dynamically detect the current snap directory name while shares
are created and not afterwards.
ref: https://www.samba.org/samba/docs/current/man-html/vfs_ceph_snapshots.8.html
Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
globals = ["default", "domain"]
instance_name = "SAMBA"
[shares.share1.options]
- "vfs objects" = "acl_xattr ceph"
+ "vfs objects" = "acl_xattr ceph_snapshots ceph"
path = "/"
"acl_xattr:security_acl_name" = "user.NTACL"
"ceph:config_file" = "/etc/ceph/ceph.conf"
globals = ["default", "domain"]
instance_name = "SAMBA"
[shares.share1.options]
- "vfs objects" = "acl_xattr ceph"
+ "vfs objects" = "acl_xattr ceph_snapshots ceph"
path = "/"
"acl_xattr:security_acl_name" = "user.NTACL"
"ceph:config_file" = "/etc/ceph/ceph.conf"
# smb.conf options
'options': {
'path': path,
- "vfs objects": f"acl_xattr {ceph_vfs}",
+ "vfs objects": f"acl_xattr ceph_snapshots {ceph_vfs}",
'acl_xattr:security_acl_name': 'user.NTACL',
f'{ceph_vfs}:config_file': '/etc/ceph/ceph.conf',
f'{ceph_vfs}:filesystem': cephfs.volume,