diff options
author | Jakob Unterwurzacher | 2020-07-27 23:31:57 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2020-07-27 23:31:57 +0200 |
commit | 13f1980dc4d9b4c0545ff3499da9da9c6d5cc505 (patch) | |
tree | 5294ac5127202c9a0be91260ec1a7baf128567b4 | |
parent | 9e0b07ec995c5320a2ba227a71da9a8d9fe2581b (diff) |
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.
-rw-r--r-- | mount.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -357,6 +357,7 @@ func initGoFuse(rootNode fs.InodeEmbedder, args *argContainer) *fuse.Server { // the kernel to limit the size explicitly. MaxWrite: fuse.MAX_KERNEL_WRITE, Options: []string{fmt.Sprintf("max_read=%d", fuse.MAX_KERNEL_WRITE)}, + Debug: args.fusedebug, } mOpts := &fuseOpts.MountOptions @@ -437,7 +438,6 @@ func initGoFuse(rootNode fs.InodeEmbedder, args *argContainer) *fuse.Server { } os.Exit(exitcodes.FuseNewServer) } - srv.SetDebug(args.fusedebug) // All FUSE file and directory create calls carry explicit permission // information. We need an unrestricted umask to create the files and |