aboutsummaryrefslogtreecommitdiff
path: root/fsck.go
diff options
context:
space:
mode:
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{