]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/smb: Add ceph_snapshots vfs module to share definition 62169/head
authorAnoop C S <anoopcs@cryptolab.net>
Fri, 7 Mar 2025 11:28:04 +0000 (16:58 +0530)
committerAnoop C S <anoopcs@cryptolab.net>
Fri, 7 Mar 2025 11:55:38 +0000 (17:25 +0530)
commitcf0e9308836b24d6f3f51c4f2fa72ff5e99eb77e
treedf498c4728b2f9e6fdc4973efb63b3eb531ed0e0
parentb1e4a2b1d60ed41f787db1709b62bfea5ed889fa
mgr/smb: Add ceph_snapshots vfs module to share definition

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>
qa/suites/orch/cephadm/smb/tasks/deploy_smb_basic.yaml
qa/suites/orch/cephadm/smb/tasks/deploy_smb_domain.yaml
src/pybind/mgr/smb/handler.py