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:
1835
source3/modules/vfs_ceph_snapshots.c
Normal file
1835
source3/modules/vfs_ceph_snapshots.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -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',
|
||||
|
@ -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'))
|
||||
|
Reference in New Issue
Block a user