]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_ceph_new: Remove unused code in cephmount_mount_fs()
authorAnoop C S <anoopcs@samba.org>
Mon, 24 Feb 2025 06:39:06 +0000 (12:09 +0530)
committerJule Anger <janger@samba.org>
Thu, 13 Mar 2025 15:31:09 +0000 (15:31 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15818

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit ee1c3e1db9a2d12ba6d9dd24faccf0020b1daf0d)

source3/modules/vfs_ceph_new.c

index 706e6d21e1d26ed5b3140ba06b57d49878f63e33..d47c70314b0c6813c3f4b69f2dc6e0c53781ed50 100644 (file)
@@ -280,7 +280,6 @@ static struct ceph_mount_info *cephmount_mount_fs(
        struct vfs_ceph_config *config)
 {
        int ret;
-       char buf[256];
        struct ceph_mount_info *mnt = NULL;
        /* if config_file and/or user_id are NULL, ceph will use defaults */
 
@@ -300,12 +299,6 @@ static struct ceph_mount_info *cephmount_mount_fs(
                goto out;
        }
 
-       DBG_DEBUG("[CEPH] calling ceph_conf_get: option='%s'\n", "log_file");
-       ret = config->ceph_conf_get_fn(mnt, "log_file", buf, sizeof(buf));
-       if (ret < 0) {
-               goto out;
-       }
-
        /* libcephfs disables POSIX ACL support by default, enable it... */
        ret = cephmount_update_conf(config,
                                    mnt,