]> 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 16:03:20 +0000 (16:03 +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 2d3533feaa5b74260a467d2639ed115b25e91edb..97065fc41c630a8d3075d5881090de940d48b731 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,