Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

Fix compilation error.

chrislusfe09f45f5edd7
diff --git a/go/weed/mount_std.go b/go/weed/mount_std.go
index 97b73e6725..db097fb1da 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) {