From 015a88409086e4a1af60ab85c5b129f909db3e45 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 19 Jul 2020 12:48:29 +0200 Subject: v2api: enable go-fuse warnings on mount & fsck --- fsck.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'fsck.go') 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{ -- cgit v1.2.3