diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-08-22 04:59:09 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-08-22 04:59:09 -0700 |
| commit | 3b2c39f1bee0450a0f94363e42e6760ec6d01b79 (patch) | |
| tree | 4989b69a6d70ed956de0d76201fddc02a8b0637e | |
| parent | 2158d4fe4d613fcb17ca4f59ea2ebd4e5cd97bbb (diff) | |
| download | seaweedfs-3b2c39f1bee0450a0f94363e42e6760ec6d01b79.tar.xz seaweedfs-3b2c39f1bee0450a0f94363e42e6760ec6d01b79.zip | |
mount: set name when mount path equals mount folder
fix https://github.com/chrislusf/seaweedfs/issues/2275#issuecomment-903255876
| -rw-r--r-- | weed/filesys/xattr.go | 2 |
1 files changed, 1 insertions, 1 deletions
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(), |
