summaryrefslogtreecommitdiff
path: root/internal/fusefrontend_reverse/rfile.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-04-01 15:49:53 +0200
committerJakob Unterwurzacher2017-04-01 15:49:53 +0200
commitacb73ca4363a8fbf3e0be1907a9b26689d879d73 (patch)
tree40ff06220daf3fc0fffac966bf800aa49621b9cb /internal/fusefrontend_reverse/rfile.go
parentc87439b4e691f55f79241bc7d9c2bf64a67abe14 (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/rfile.go')
-rw-r--r--internal/fusefrontend_reverse/rfile.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/fusefrontend_reverse/rfile.go b/internal/fusefrontend_reverse/rfile.go
index c5ca991..71d35a1 100644
--- a/internal/fusefrontend_reverse/rfile.go
+++ b/internal/fusefrontend_reverse/rfile.go
@@ -3,7 +3,6 @@ package fusefrontend_reverse
import (
"bytes"
"encoding/binary"
- "fmt"
"io"
"os"
@@ -51,8 +50,10 @@ func (rfs *ReverseFS) newFile(relPath string, flags uint32) (nodefs.File, fuse.S
}
// GetAttr - FUSE call
+// Triggered by fstat() from userspace
func (rf *reverseFile) GetAttr(*fuse.Attr) fuse.Status {
- fmt.Printf("reverseFile.GetAttr fd=%d\n", rf.fd.Fd())
+ tlog.Debug.Printf("reverseFile.GetAttr fd=%d\n", rf.fd.Fd())
+ // The kernel should fall back to stat()
return fuse.ENOSYS
}