v2api: pass fusedebug option via MountOptions

srv.SetDebug() is deprecated and only enables the debug
output after the init sequence, so we missed the first
few transaction in the debug output.
This commit is contained in:
Jakob Unterwurzacher 2020-07-27 23:31:57 +02:00
parent 9e0b07ec99
commit 13f1980dc4
1 changed files with 1 additions and 1 deletions

View File

@ -357,6 +357,7 @@ func initGoFuse(rootNode fs.InodeEmbedder, args *argContainer) *fuse.Server {
// the kernel to limit the size explicitly. // the kernel to limit the size explicitly.
MaxWrite: fuse.MAX_KERNEL_WRITE, MaxWrite: fuse.MAX_KERNEL_WRITE,
Options: []string{fmt.Sprintf("max_read=%d", fuse.MAX_KERNEL_WRITE)}, Options: []string{fmt.Sprintf("max_read=%d", fuse.MAX_KERNEL_WRITE)},
Debug: args.fusedebug,
} }
mOpts := &fuseOpts.MountOptions mOpts := &fuseOpts.MountOptions
@ -437,7 +438,6 @@ func initGoFuse(rootNode fs.InodeEmbedder, args *argContainer) *fuse.Server {
} }
os.Exit(exitcodes.FuseNewServer) os.Exit(exitcodes.FuseNewServer)
} }
srv.SetDebug(args.fusedebug)
// All FUSE file and directory create calls carry explicit permission // All FUSE file and directory create calls carry explicit permission
// information. We need an unrestricted umask to create the files and // information. We need an unrestricted umask to create the files and