diff options
author | Jakob Unterwurzacher | 2021-05-18 18:38:23 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2021-05-18 18:38:23 +0200 |
commit | 0650a512bbf5a49031d47afac538a92e0994757a (patch) | |
tree | 53ea16ddce8f7b714301a929f8374a20921779a8 /fsck.go | |
parent | 5da20da977ae5c870bc2009cd540cb5fe9aae79b (diff) |
fsck: redirect go-fuse noise to syslog
Diffstat (limited to 'fsck.go')
-rw-r--r-- | fsck.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -253,6 +253,7 @@ func (ck *fsckObj) xattrs(relPath string) { } } +// entrypoint from main() func fsck(args *argContainer) (exitcode int) { if args.reverse { tlog.Fatal.Printf("Running -fsck with -reverse is not supported") @@ -274,6 +275,12 @@ func fsck(args *argContainer) (exitcode int) { watchDone: make(chan struct{}), seenInodes: make(map[uint64]struct{}), } + if args.quiet { + // go-fuse throws a lot of these: + // writer: Write/Writev failed, err: 2=no such file or directory. opcode: INTERRUPT + // This is ugly and causes failures in xfstests. Hide them away in syslog. + tlog.SwitchLoggerToSyslog() + } // Mount srv := initGoFuse(pfs, args) // Handle SIGINT & SIGTERM |