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.

FUSE mount: rename under root

Chris Lu64000f5c451f
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
index 77438b58ec..382617384a 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -84,6 +84,9 @@ func NewSeaweedFileSystem(option *Option) *WFS {
}
wfs.root = &Dir{Path: wfs.option.FilerMountRootPath, wfs: wfs}
+ wfs.getNode(filer2.FullPath(wfs.option.FilerMountRootPath), func() fs.Node {
+ return wfs.root
+ })
return wfs
}