diff options
| author | chrislusf <chris.lu@gmail.com> | 2015-03-24 11:09:29 -0700 |
|---|---|---|
| committer | chrislusf <chris.lu@gmail.com> | 2015-03-24 11:09:29 -0700 |
| commit | 43689146ccc736248d4c66cb8b2c318b378b19f3 (patch) | |
| tree | 1897a5540a994679b20941f0db371d1d24ce0ad6 | |
| parent | f56339f38d145234dfec0b14161edd3eb23c6810 (diff) | |
| download | seaweedfs-43689146ccc736248d4c66cb8b2c318b378b19f3.tar.xz seaweedfs-43689146ccc736248d4c66cb8b2c318b378b19f3.zip | |
fix compilation error
| -rw-r--r-- | go/weed/mount_std.go | 7 |
1 files 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) { |
