]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/FuseStore: respect fuse_debug
authorSage Weil <sage@redhat.com>
Thu, 7 Jan 2016 02:16:13 +0000 (21:16 -0500)
committerSage Weil <sage@redhat.com>
Wed, 27 Jan 2016 19:06:13 +0000 (14:06 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/FuseStore.cc

index 028b5be4144fb91ac08c32fb0c15451659c91ebc..d1e11e4f80669016bb4a2e1e505fd086fe66602e 100644 (file)
@@ -825,7 +825,10 @@ int FuseStore::start()
     "-f", // foreground
     "-d", // debug
   };
-  fuse_args a = FUSE_ARGS_INIT(4, (char**)v);
+  int c = 3;
+  if (g_conf->fuse_debug)
+    ++c;
+  fuse_args a = FUSE_ARGS_INIT(c, (char**)v);
   info->args = a;
   if (fuse_parse_cmdline(&info->args, &info->mountpoint, NULL, NULL) == -1) {
     derr << __func__ << " failed to parse args" << dendl;