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.

code style

limdaee3fd08b9bd
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
index ef31a92588..14c851f884 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -97,6 +97,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
})
entry, _ := filer_pb.GetEntry(wfs, util.FullPath(wfs.option.FilerMountRootPath))
+
wfs.root = &Dir{name: wfs.option.FilerMountRootPath, wfs: wfs, entry: entry}
wfs.fsNodeCache = newFsCache(wfs.root)