From: Sage Weil Date: Thu, 7 Jan 2016 02:16:13 +0000 (-0500) Subject: os/FuseStore: respect fuse_debug X-Git-Tag: v10.0.4~154^2~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f8de01773d49f1f4ba3d45ffa7a9de7cc9b6e44d;p=ceph.git os/FuseStore: respect fuse_debug Signed-off-by: Sage Weil --- diff --git a/src/os/FuseStore.cc b/src/os/FuseStore.cc index 028b5be4144f..d1e11e4f8066 100644 --- a/src/os/FuseStore.cc +++ b/src/os/FuseStore.cc @@ -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;