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

chrislusf43689146ccc7
diff --git a/go/weed/mount_std.go b/go/weed/mount_std.go
index e54559c902..62c3fb4d7c 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) {