aboutsummaryrefslogtreecommitdiff
path: root/fsck.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-07-19 12:48:29 +0200
committerJakob Unterwurzacher2020-07-19 12:48:29 +0200
commit015a88409086e4a1af60ab85c5b129f909db3e45 (patch)
tree3b82d527120af2dab60dfa3a13f64cbde73be953 /fsck.go
parent751f237993c5d6d26044c915bb1d682480fb350a (diff)
v2api: enable go-fuse warnings on mount & fsck
Diffstat (limited to 'fsck.go')
-rw-r--r--fsck.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/fsck.go b/fsck.go
index 92b79de..671d5d0 100644
--- a/fsck.go
+++ b/fsck.go
@@ -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{