mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-22 02:27:24 +08:00
mount: set name when mount path equals mount folder
fix https://github.com/chrislusf/seaweedfs/issues/2275#issuecomment-903255876
This commit is contained in:
@@ -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
|
// return a valid entry for the mount root
|
||||||
if string(fullpath) == wfs.option.FilerMountRootPath {
|
if string(fullpath) == wfs.option.FilerMountRootPath {
|
||||||
return &filer_pb.Entry{
|
return &filer_pb.Entry{
|
||||||
Name: wfs.option.FilerMountRootPath,
|
Name: name,
|
||||||
IsDirectory: true,
|
IsDirectory: true,
|
||||||
Attributes: &filer_pb.FuseAttributes{
|
Attributes: &filer_pb.FuseAttributes{
|
||||||
Mtime: wfs.option.MountMtime.Unix(),
|
Mtime: wfs.option.MountMtime.Unix(),
|
||||||
|
Reference in New Issue
Block a user