Browse Source

mount: set name when mount path equals mount folder

fix https://github.com/chrislusf/seaweedfs/issues/2275#issuecomment-903255876
pull/2280/head
Chris Lu 3 years ago
parent
commit
3b2c39f1be
  1. 2
      weed/filesys/xattr.go

2
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(),

Loading…
Cancel
Save