Removing log statements because they can already be output from fuse
This commit is contained in:
parent
540445f661
commit
da03558a45
7
dir.go
7
dir.go
@ -26,7 +26,6 @@ import (
|
||||
"bazil.org/fuse"
|
||||
"bazil.org/fuse/fs"
|
||||
"golang.org/x/net/context"
|
||||
"log"
|
||||
)
|
||||
|
||||
type versionedDir struct {
|
||||
@ -47,15 +46,11 @@ func newVersionedDir(node *versionedNode, inode uint64, parent *versionedDir) *v
|
||||
}
|
||||
|
||||
func (this versionedDir) Attr(attr *fuse.Attr) {
|
||||
log.Printf("versionedDir::Attr: %s", this.node)
|
||||
|
||||
this.node.attr(attr)
|
||||
attr.Inode = this.inode
|
||||
}
|
||||
|
||||
func (this versionedDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error) {
|
||||
log.Printf("versionedDir::ReadDirAll: %s", this.node)
|
||||
|
||||
entries := []fuse.Dirent{{Inode: this.inode, Name: ".", Type: fuse.DT_Dir}}
|
||||
if this.parent != nil {
|
||||
entry := fuse.Dirent{Inode: this.parent.inode, Name: "..", Type: fuse.DT_Dir}
|
||||
@ -76,8 +71,6 @@ func (this versionedDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)
|
||||
}
|
||||
|
||||
func (this versionedDir) Lookup(ctx context.Context, name string) (fs.Node, error) {
|
||||
log.Printf("versionedDir::Lookup: %s", this.node)
|
||||
|
||||
if dir, ok := this.dirs[name]; ok {
|
||||
return dir, nil
|
||||
}
|
||||
|
5
file.go
5
file.go
@ -26,7 +26,6 @@ import (
|
||||
"bazil.org/fuse"
|
||||
"golang.org/x/net/context"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
)
|
||||
|
||||
type versionedFile struct {
|
||||
@ -43,15 +42,11 @@ func newVersionedFile(node *versionedNode, inode uint64, parent *versionedDir) *
|
||||
}
|
||||
|
||||
func (this versionedFile) Attr(attr *fuse.Attr) {
|
||||
log.Printf("versionedFile::Attr: %s", this.node)
|
||||
|
||||
this.node.attr(attr)
|
||||
attr.Inode = this.inode
|
||||
}
|
||||
|
||||
func (this versionedFile) ReadAll(ctx context.Context) ([]byte, error) {
|
||||
log.Printf("versionedFile::ReadAll: %s", this.node)
|
||||
|
||||
bytes, err := ioutil.ReadFile(this.node.rebasedPath())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user