use the FUSE debug only if the debug mount option is used

master
szaka 2007-10-25 19:31:36 +00:00
parent 1627dbeeda
commit a6a0a088fa
1 changed files with 3 additions and 3 deletions

View File

@ -2257,11 +2257,11 @@ int main(int argc, char *argv[])
if (fuse_opt_add_arg(&margs, "") == -1 ||
fuse_opt_add_arg(&margs, "-o") == -1)
fh = NULL;
if (!ctx->debug && !ctx->no_detach) {
if (fuse_opt_add_arg(&margs, "use_ino,kernel_cache") == -1)
if (ctx->debug) {
if (fuse_opt_add_arg(&margs, "use_ino,kernel_cache,debug") == -1)
fh = NULL;
} else {
if (fuse_opt_add_arg(&margs, "use_ino,kernel_cache,debug") == -1)
if (fuse_opt_add_arg(&margs, "use_ino,kernel_cache") == -1)
fh = NULL;
}
if (fh)