Prefer an explicit call to 'ceph_init' for better debug handling in case
of failure. Without such call the init is done behind the scenes by
libcephfs upon first mount but we don't have have enough visibility in
case something went wrong.
Signed-off-by: Shachar Sharon <ssharon@redhat.com>
Reviewed-by: Xavi Hernandez <xhernandez@redhat.com>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Sat Dec 13 19:40:01 UTC 2025 on atb-devel-224
if (ret < 0) {
goto out;
}
+ /*
+ * do explicit init. note that in proxy mode this is a no-op as
+ * libcephfs' proxy uses only implicit init upon first mount to reduce
+ * resource consumption.
+ */
+ ret = config->ceph_init_fn(mnt);
+ if (ret < 0) {
+ DBG_DEBUG("[CEPH] ceph_init failed: ret=%d\n", ret);
+ goto out;
+ }
+
/*
* select a cephfs file system to use:
* In ceph, multiple file system support has been stable since