From: Xiubo Li Date: Mon, 25 May 2020 01:05:42 +0000 (-0400) Subject: ceph_fuse: enable fuse_debug when the '-d' option is specified X-Git-Tag: v14.2.11~76^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F35398%2Fhead;p=ceph.git ceph_fuse: enable fuse_debug when the '-d' option is specified The global_init() will check and remove the -d option, but it should enable the libfuse debug mode. Fixes: https://tracker.ceph.com/issues/45524 Signed-off-by: Xiubo Li (cherry picked from commit 818f56b0da249311c4950406b11c0f97faa86789) --- diff --git a/src/common/config.cc b/src/common/config.cc index 8024d433bf6a..8816512cd6ce 100644 --- a/src/common/config.cc +++ b/src/common/config.cc @@ -661,6 +661,7 @@ int md_config_t::parse_argv(ConfigValues& values, set_val_or_die(values, tracker, "daemonize", "false"); } else if (ceph_argparse_flag(args, i, "-d", (char*)NULL)) { + set_val_or_die(values, tracker, "fuse_debug", "true"); set_val_or_die(values, tracker, "daemonize", "false"); set_val_or_die(values, tracker, "log_file", ""); set_val_or_die(values, tracker, "log_to_stderr", "true"); diff --git a/src/common/options.cc b/src/common/options.cc index e490cb3703a1..2f04ba5a91bd 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -8376,9 +8376,11 @@ std::vector