From 43689146ccc736248d4c66cb8b2c318b378b19f3 Mon Sep 17 00:00:00 2001 From: chrislusf Date: Tue, 24 Mar 2015 11:09:29 -0700 Subject: [PATCH] fix compilation error --- go/weed/mount_std.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/go/weed/mount_std.go b/go/weed/mount_std.go index e54559c90..62c3fb4d7 100644 --- a/go/weed/mount_std.go +++ b/go/weed/mount_std.go @@ -4,7 +4,6 @@ package main import ( "fmt" - "os" "runtime" "bazil.org/fuse" @@ -53,8 +52,7 @@ type File struct { Name string } -func (File) Attr() fuse.Attr { - return fuse.Attr{Mode: 0444} +func (File) Attr(attr *fuse.Attr) { } func (File) ReadAll(ctx context.Context) ([]byte, error) { return []byte("hello, world\n"), nil @@ -65,8 +63,7 @@ type Dir struct { Id uint64 } -func (dir Dir) Attr() fuse.Attr { - return fuse.Attr{Inode: dir.Id, Mode: os.ModeDir | 0555} +func (dir Dir) Attr(attr *fuse.Attr) { } func (dir Dir) Lookup(ctx context.Context, name string) (fs.Node, error) {