From 3b2c39f1bee0450a0f94363e42e6760ec6d01b79 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 22 Aug 2021 04:59:09 -0700 Subject: [PATCH] mount: set name when mount path equals mount folder fix https://github.com/chrislusf/seaweedfs/issues/2275#issuecomment-903255876 --- weed/filesys/xattr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filesys/xattr.go b/weed/filesys/xattr.go index 473805116..4b2ee0064 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(),