Removing log statements because they can already be output from fuse

This commit is contained in:
Alex Yatskov 2015-05-18 11:15:22 +09:00
parent 540445f661
commit da03558a45
2 changed files with 0 additions and 12 deletions

7
dir.go
View File

@ -26,7 +26,6 @@ import (
"bazil.org/fuse" "bazil.org/fuse"
"bazil.org/fuse/fs" "bazil.org/fuse/fs"
"golang.org/x/net/context" "golang.org/x/net/context"
"log"
) )
type versionedDir struct { type versionedDir struct {
@ -47,15 +46,11 @@ func newVersionedDir(node *versionedNode, inode uint64, parent *versionedDir) *v
} }
func (this versionedDir) Attr(attr *fuse.Attr) { func (this versionedDir) Attr(attr *fuse.Attr) {
log.Printf("versionedDir::Attr: %s", this.node)
this.node.attr(attr) this.node.attr(attr)
attr.Inode = this.inode attr.Inode = this.inode
} }
func (this versionedDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error) { 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}} entries := []fuse.Dirent{{Inode: this.inode, Name: ".", Type: fuse.DT_Dir}}
if this.parent != nil { if this.parent != nil {
entry := fuse.Dirent{Inode: this.parent.inode, Name: "..", Type: fuse.DT_Dir} 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) { 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 { if dir, ok := this.dirs[name]; ok {
return dir, nil return dir, nil
} }

View File

@ -26,7 +26,6 @@ import (
"bazil.org/fuse" "bazil.org/fuse"
"golang.org/x/net/context" "golang.org/x/net/context"
"io/ioutil" "io/ioutil"
"log"
) )
type versionedFile struct { type versionedFile struct {
@ -43,15 +42,11 @@ func newVersionedFile(node *versionedNode, inode uint64, parent *versionedDir) *
} }
func (this versionedFile) Attr(attr *fuse.Attr) { func (this versionedFile) Attr(attr *fuse.Attr) {
log.Printf("versionedFile::Attr: %s", this.node)
this.node.attr(attr) this.node.attr(attr)
attr.Inode = this.inode attr.Inode = this.inode
} }
func (this versionedFile) ReadAll(ctx context.Context) ([]byte, error) { func (this versionedFile) ReadAll(ctx context.Context) ([]byte, error) {
log.Printf("versionedFile::ReadAll: %s", this.node)
bytes, err := ioutil.ReadFile(this.node.rebasedPath()) bytes, err := ioutil.ReadFile(this.node.rebasedPath())
if err != nil { if err != nil {
return nil, err return nil, err