1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

vfs: add ceph_snapshots module

vfs_ceph_snapshots is a module for accessing CephFS snapshots as
Previous Versions. The module is separate from vfs_ceph, so that it can
also be used atop a CephFS kernel backed share with vfs_default.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
David Disseldorp
2019-03-26 16:35:18 +01:00
parent 76d7d05b1d
commit 76f3b194c2
3 changed files with 1848 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -522,6 +522,14 @@ bld.SAMBA3_MODULE('vfs_ceph',
cflags=bld.CONFIG_GET('CFLAGS_CEPHFS'),
includes=bld.CONFIG_GET('CPPPATH_CEPHFS'))
bld.SAMBA3_MODULE('vfs_ceph_snapshots',
subsystem='vfs',
source='vfs_ceph_snapshots.c',
deps='samba-util',
init_function='',
internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_ceph_snapshots'),
enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_ceph_snapshots'))
bld.SAMBA3_MODULE('vfs_glusterfs',
subsystem='vfs',
source='vfs_glusterfs.c',

View File

@ -1766,6 +1766,11 @@ main() {
if conf.CONFIG_SET("HAVE_CEPH"):
default_shared_modules.extend(TO_LIST('vfs_ceph'))
# Unlike vfs_ceph, vfs_ceph_snapshots doesn't depend on libcephfs, so
# can be enabled atop a kernel CephFS share (with vfs_default) in
# addition to vfs_ceph. Still, only enable vfs_ceph_snapshots builds
# if we're building with libcephfs for now.
default_shared_modules.extend(TO_LIST('vfs_ceph_snapshots'))
if conf.CONFIG_SET('HAVE_GLUSTERFS'):
default_shared_modules.extend(TO_LIST('vfs_glusterfs'))