diff options
author | Jakob Unterwurzacher | 2020-07-19 12:48:29 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2020-07-19 12:48:29 +0200 |
commit | 015a88409086e4a1af60ab85c5b129f909db3e45 (patch) | |
tree | 3b82d527120af2dab60dfa3a13f64cbde73be953 /fsck.go | |
parent | 751f237993c5d6d26044c915bb1d682480fb350a (diff) |
v2api: enable go-fuse warnings on mount & fsck
Diffstat (limited to 'fsck.go')
-rw-r--r-- | fsck.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -3,6 +3,7 @@ package main import ( "bytes" "fmt" + "log" "os" "path/filepath" "strings" @@ -254,7 +255,11 @@ func fsck(args *argContainer) { } args.allow_other = false pfs, wipeKeys := initFuseFrontend(args) - fs.NewNodeFS(pfs, &fs.Options{}) + opts := fs.Options{ + // Enable go-fuse warnings + Logger: log.New(os.Stderr, "go-fuse: ", 0), + } + fs.NewNodeFS(pfs, &opts) rn := pfs.(*fusefrontend.RootNode) rn.MitigatedCorruptions = make(chan string) ck := fsckObj{ |