From da03558a45d0c8bbed12f66e64f0d99153177e47 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 18 May 2015 11:15:22 +0900 Subject: [PATCH] Removing log statements because they can already be output from fuse --- dir.go | 7 ------- file.go | 5 ----- 2 files changed, 12 deletions(-) diff --git a/dir.go b/dir.go index ad659de..51475e5 100644 --- a/dir.go +++ b/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 } diff --git a/file.go b/file.go index 7deb89a..532e1f5 100644 --- a/file.go +++ b/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