diff options
author | Jakob Unterwurzacher | 2017-04-01 15:49:53 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-04-01 15:49:53 +0200 |
commit | acb73ca4363a8fbf3e0be1907a9b26689d879d73 (patch) | |
tree | 40ff06220daf3fc0fffac966bf800aa49621b9cb /internal/fusefrontend_reverse/rfs.go | |
parent | c87439b4e691f55f79241bc7d9c2bf64a67abe14 (diff) |
fusefrontend_reverse: convert fmt.Printf calls to tlog
The fmt.Printfs output would end up in the paniclog.
Diffstat (limited to 'internal/fusefrontend_reverse/rfs.go')
-rw-r--r-- | internal/fusefrontend_reverse/rfs.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/fusefrontend_reverse/rfs.go b/internal/fusefrontend_reverse/rfs.go index 9dc2572..4dba91a 100644 --- a/internal/fusefrontend_reverse/rfs.go +++ b/internal/fusefrontend_reverse/rfs.go @@ -89,23 +89,23 @@ func (rfs *ReverseFS) dirIVAttr(relPath string, context *fuse.Context) (*fuse.At cDir := relDir(relPath) dir, err := rfs.decryptPath(cDir) if err != nil { - fmt.Printf("decrypt err %q\n", cDir) + tlog.Warn.Printf("dirIVAttr: decrypt err %q\n", cDir) return nil, fuse.ToStatus(err) } // Does the parent dir exist? a, status := rfs.loopbackfs.GetAttr(dir, context) if !status.Ok() { - fmt.Printf("missing parent\n") + tlog.Warn.Printf("dirIVAttr: missing parent\n") return nil, status } // Is it a dir at all? if !a.IsDir() { - fmt.Printf("not isdir\n") + tlog.Warn.Printf("dirIVAttr: not isdir\n") return nil, fuse.ENOTDIR } // Does the user have execute permissions? if a.Mode&syscall.S_IXUSR == 0 { - fmt.Printf("not exec") + tlog.Warn.Printf("dirIVAttr: not exec") return nil, fuse.EPERM } // All good. Let's fake the file. We use the timestamps from the parent dir. @@ -203,7 +203,7 @@ func (rfs *ReverseFS) GetAttr(relPath string, context *fuse.Context) (*fuse.Attr } if virtual { if !status.Ok() { - fmt.Printf("GetAttr %q: newXFile failed: %v\n", relPath, status) + tlog.Warn.Printf("GetAttr %q: newXFile failed: %v\n", relPath, status) return nil, status } var a fuse.Attr |