** Description changed:
While rebasing the Ubuntu changes on the latest debian upload, and
checking the release notes[1] for samba 4.21.0, I noticed that the
ceph_new VFS module is missing.
This module is mentioned in the release notes, and is the future path of
the ceph integration. It should be part of the samba package to allow
users to try it out.
Since it's opt-in, there is no extra risk to include this module. Users
have to explicitly select it to use it, otherwise it just sits there on
disk.
There may be bug fixes that are needed for the module itself in the
future, however, maybe even during the plucky development cycle.
-
- Here is a quick patch (just build tested):
+ Here is a quick patch:
--- a/debian/samba-vfs-ceph.install
+++ b/debian/samba-vfs-ceph.install
@@ -1,4 +1,6 @@
usr/lib/${DEB_HOST_MULTIARCH}/samba/vfs/ceph.so
usr/lib/${DEB_HOST_MULTIARCH}/samba/vfs/ceph_snapshots.so
+usr/lib/${DEB_HOST_MULTIARCH}/samba/vfs/ceph_new.so
usr/share/man/man8/vfs_ceph.8
+usr/share/man/man8/vfs_ceph_new.8
usr/share/man/man8/vfs_ceph_snapshots.8
+ With this patch, I tested that smbd (the main samba process) can load
+ the vfs module:
+
+ [2025/02/24 19:40:11.567425, 10, pid=3840, effective(0, 0), real(0, 0),
class=vfs] source3/smbd/vfs.c:66(vfs_find_backend_entry)
19:40:11 [0/1886]
+ vfs_find_backend_entry called for ceph_new
+ [2025/02/24 19:40:11.567548, 5, pid=3840, effective(0, 0), real(0, 0),
class=vfs] source3/smbd/vfs.c:105(smb_register_vfs)
+ Successfully added vfs backend 'ceph_new'
+ [2025/02/24 19:40:11.567677, 10, pid=3840, effective(0, 0), real(0, 0),
class=vfs] source3/smbd/vfs.c:66(vfs_find_backend_entry)
+ vfs_find_backend_entry called for ceph_new
+ Successfully loaded vfs module [ceph_new] with the new modules system
+
+ It subsequently failed because I didn't have a ceph cluster available:
+
+ [2025/02/24 19:40:11.593506, 10, pid=3840, effective(0, 0), real(0, 0),
class=vfs] source3/modules/vfs_ceph_new.c:282(cephmount_mount_fs)
+ cephmount_mount_fs: [CEPH] calling ceph_create: user_id=''
+ [2025/02/24 19:40:11.597552, 10, pid=3840, effective(0, 0), real(0, 0),
class=vfs] source3/modules/vfs_ceph_new.c:290(cephmount_mount_fs)
+ cephmount_mount_fs: [CEPH] calling ceph_conf_read_file: conf_file='.'
+ cephmount_mount_fs: [CEPH] mount failed: user_id='' fsname='' No such file
or directorymake_connection_snum: SMB_VFS_CONNECT for service 'storage' at
'/something/cephfs/path' failed: No such file or directory
+
+
+ But no segfaults at this stage.
+
+
1. https://www.samba.org/samba/history/samba-4.21.0.html
** Description changed:
While rebasing the Ubuntu changes on the latest debian upload, and
checking the release notes[1] for samba 4.21.0, I noticed that the
ceph_new VFS module is missing.
This module is mentioned in the release notes, and is the future path of
the ceph integration. It should be part of the samba package to allow
users to try it out.
Since it's opt-in, there is no extra risk to include this module. Users
have to explicitly select it to use it, otherwise it just sits there on
disk.
There may be bug fixes that are needed for the module itself in the
future, however, maybe even during the plucky development cycle.
Here is a quick patch:
--- a/debian/samba-vfs-ceph.install
+++ b/debian/samba-vfs-ceph.install
@@ -1,4 +1,6 @@
usr/lib/${DEB_HOST_MULTIARCH}/samba/vfs/ceph.so
usr/lib/${DEB_HOST_MULTIARCH}/samba/vfs/ceph_snapshots.so
+usr/lib/${DEB_HOST_MULTIARCH}/samba/vfs/ceph_new.so
usr/share/man/man8/vfs_ceph.8
+usr/share/man/man8/vfs_ceph_new.8
usr/share/man/man8/vfs_ceph_snapshots.8
With this patch, I tested that smbd (the main samba process) can load
the vfs module:
[2025/02/24 19:40:11.567425, 10, pid=3840, effective(0, 0), real(0, 0),
class=vfs] source3/smbd/vfs.c:66(vfs_find_backend_entry)
19:40:11 [0/1886]
- vfs_find_backend_entry called for ceph_new
+ vfs_find_backend_entry called for ceph_new
[2025/02/24 19:40:11.567548, 5, pid=3840, effective(0, 0), real(0, 0),
class=vfs] source3/smbd/vfs.c:105(smb_register_vfs)
- Successfully added vfs backend 'ceph_new'
+ Successfully added vfs backend 'ceph_new'
[2025/02/24 19:40:11.567677, 10, pid=3840, effective(0, 0), real(0, 0),
class=vfs] source3/smbd/vfs.c:66(vfs_find_backend_entry)
- vfs_find_backend_entry called for ceph_new
- Successfully loaded vfs module [ceph_new] with the new modules system
+ vfs_find_backend_entry called for ceph_new
+ Successfully loaded vfs module [ceph_new] with the new modules system
It subsequently failed because I didn't have a ceph cluster available:
-
+
[2025/02/24 19:40:11.593506, 10, pid=3840, effective(0, 0), real(0, 0),
class=vfs] source3/modules/vfs_ceph_new.c:282(cephmount_mount_fs)
- cephmount_mount_fs: [CEPH] calling ceph_create: user_id=''
+ cephmount_mount_fs: [CEPH] calling ceph_create: user_id=''
[2025/02/24 19:40:11.597552, 10, pid=3840, effective(0, 0), real(0, 0),
class=vfs] source3/modules/vfs_ceph_new.c:290(cephmount_mount_fs)
- cephmount_mount_fs: [CEPH] calling ceph_conf_read_file: conf_file='.'
- cephmount_mount_fs: [CEPH] mount failed: user_id='' fsname='' No such file
or directorymake_connection_snum: SMB_VFS_CONNECT for service 'storage' at
'/something/cephfs/path' failed: No such file or directory
-
+ cephmount_mount_fs: [CEPH] calling ceph_conf_read_file: conf_file='.'
+ cephmount_mount_fs: [CEPH] mount failed: user_id='' fsname='' No such file
or directorymake_connection_snum: SMB_VFS_CONNECT for service 'storage' at
'/something/cephfs/path' failed: No such file or directory
But no segfaults at this stage.
+ I used the builds from
+ https://launchpad.net/~ahasenack/+archive/ubuntu/samba-merge/+packages
+
1. https://www.samba.org/samba/history/samba-4.21.0.html
** Description changed:
While rebasing the Ubuntu changes on the latest debian upload, and
checking the release notes[1] for samba 4.21.0, I noticed that the
ceph_new VFS module is missing.
This module is mentioned in the release notes, and is the future path of
the ceph integration. It should be part of the samba package to allow
users to try it out.
Since it's opt-in, there is no extra risk to include this module. Users
have to explicitly select it to use it, otherwise it just sits there on
disk.
There may be bug fixes that are needed for the module itself in the
future, however, maybe even during the plucky development cycle.
Here is a quick patch:
--- a/debian/samba-vfs-ceph.install
+++ b/debian/samba-vfs-ceph.install
@@ -1,4 +1,6 @@
usr/lib/${DEB_HOST_MULTIARCH}/samba/vfs/ceph.so
usr/lib/${DEB_HOST_MULTIARCH}/samba/vfs/ceph_snapshots.so
+usr/lib/${DEB_HOST_MULTIARCH}/samba/vfs/ceph_new.so
usr/share/man/man8/vfs_ceph.8
+usr/share/man/man8/vfs_ceph_new.8
usr/share/man/man8/vfs_ceph_snapshots.8
With this patch, I tested that smbd (the main samba process) can load
the vfs module:
[2025/02/24 19:40:11.567425, 10, pid=3840, effective(0, 0), real(0, 0),
class=vfs] source3/smbd/vfs.c:66(vfs_find_backend_entry)
19:40:11 [0/1886]
vfs_find_backend_entry called for ceph_new
[2025/02/24 19:40:11.567548, 5, pid=3840, effective(0, 0), real(0, 0),
class=vfs] source3/smbd/vfs.c:105(smb_register_vfs)
Successfully added vfs backend 'ceph_new'
[2025/02/24 19:40:11.567677, 10, pid=3840, effective(0, 0), real(0, 0),
class=vfs] source3/smbd/vfs.c:66(vfs_find_backend_entry)
vfs_find_backend_entry called for ceph_new
Successfully loaded vfs module [ceph_new] with the new modules system
It subsequently failed because I didn't have a ceph cluster available:
[2025/02/24 19:40:11.593506, 10, pid=3840, effective(0, 0), real(0, 0),
class=vfs] source3/modules/vfs_ceph_new.c:282(cephmount_mount_fs)
cephmount_mount_fs: [CEPH] calling ceph_create: user_id=''
[2025/02/24 19:40:11.597552, 10, pid=3840, effective(0, 0), real(0, 0),
class=vfs] source3/modules/vfs_ceph_new.c:290(cephmount_mount_fs)
cephmount_mount_fs: [CEPH] calling ceph_conf_read_file: conf_file='.'
cephmount_mount_fs: [CEPH] mount failed: user_id='' fsname='' No such file
or directorymake_connection_snum: SMB_VFS_CONNECT for service 'storage' at
'/something/cephfs/path' failed: No such file or directory
But no segfaults at this stage.
I used the builds from
https://launchpad.net/~ahasenack/+archive/ubuntu/samba-merge/+packages
-
1. https://www.samba.org/samba/history/samba-4.21.0.html
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2099928
Title:
[FFe]: Missing ceph_new vfs module
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2099928/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs