aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislusf <chris.lu@gmail.com>2015-05-30 13:28:39 -0700
committerchrislusf <chris.lu@gmail.com>2015-05-30 13:28:39 -0700
commite09f45f5edd7786375598d2f6045f69be1b284c6 (patch)
treea19ddc4e896cce23e4901d1243df1d25c3f42f30
parent32ba7fc6c015cd3f4f83af4a261b89e7262d1477 (diff)
downloadseaweedfs-e09f45f5edd7786375598d2f6045f69be1b284c6.tar.xz
seaweedfs-e09f45f5edd7786375598d2f6045f69be1b284c6.zip
Fix compilation error.
Fix for https://github.com/chrislusf/seaweedfs/issues/150
-rw-r--r--go/weed/mount_std.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/go/weed/mount_std.go b/go/weed/mount_std.go
index 97b73e672..db097fb1d 100644
--- a/go/weed/mount_std.go
+++ b/go/weed/mount_std.go
@@ -52,7 +52,8 @@ type File struct {
Name string
}
-func (File) Attr(attr *fuse.Attr) {
+func (File) Attr(context context.Context, attr *fuse.Attr) error {
+ return nil
}
func (File) ReadAll(ctx context.Context) ([]byte, error) {
return []byte("hello, world\n"), nil
@@ -63,7 +64,8 @@ type Dir struct {
Id uint64
}
-func (dir Dir) Attr(attr *fuse.Attr) {
+func (dir Dir) Attr(context context.Context, attr *fuse.Attr) error {
+ return nil
}
func (dir Dir) Lookup(ctx context.Context, name string) (fs.Node, error) {