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.

mount: set name when mount path equals mount folder

Chris Lu3b2c39f1bee0
diff --git a/weed/filesys/xattr.go b/weed/filesys/xattr.go
index 4738051164..4b2ee00648 100644
--- a/weed/filesys/xattr.go
+++ b/weed/filesys/xattr.go
@@ -116,7 +116,7 @@ func (wfs *WFS) maybeLoadEntry(dir, name string) (entry *filer_pb.Entry, err err
// return a valid entry for the mount root
if string(fullpath) == wfs.option.FilerMountRootPath {
return &filer_pb.Entry{
- Name: wfs.option.FilerMountRootPath,
+ Name: name,
IsDirectory: true,
Attributes: &filer_pb.FuseAttributes{
Mtime: wfs.option.MountMtime.Unix(),