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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
need to follow https://github.com/hanwen/go-fuse/blob/master/fuse/api.go
chrislu45a0fda9bda7
diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.goindex b2a64acb7c..5f35d8112f 100644--- a/weed/mount/weedfs.go+++ b/weed/mount/weedfs.go@@ -7,6 +7,7 @@ import ("github.com/chrislusf/seaweedfs/weed/storage/types""github.com/chrislusf/seaweedfs/weed/util""github.com/chrislusf/seaweedfs/weed/util/grace"+ "github.com/hanwen/go-fuse/v2/fuse""google.golang.org/grpc""os""path"@@ -49,6 +50,8 @@ type Option struct {}type WFS struct {+ // follow https://github.com/hanwen/go-fuse/blob/master/fuse/api.go+ fuse.RawFileSystemfs.Inodeoption *OptionmetaCache *meta_cache.MetaCache@@ -59,8 +62,9 @@ type WFS struct {func NewSeaweedFileSystem(option *Option) *WFS {wfs := &WFS{- option: option,- signature: util.RandomInt32(),+ RawFileSystem: fuse.NewDefaultRawFileSystem(),+ option: option,+ signature: util.RandomInt32(),}wfs.root = Directory{