diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-03-15 20:46:25 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-03-15 20:46:25 -0700 |
| commit | 22a07a12d2cc89abc66f100ffb4356439eaa1614 (patch) | |
| tree | 29f2655710e7ba156d091ff73d4652343aea290f | |
| parent | 9f00f95bfb8dcf118ade083c66122725f25fdd45 (diff) | |
| download | seaweedfs-22a07a12d2cc89abc66f100ffb4356439eaa1614.tar.xz seaweedfs-22a07a12d2cc89abc66f100ffb4356439eaa1614.zip | |
[mount] [regression] `filer.path` option results in empty mount in 2.32
fix https://github.com/chrislusf/seaweedfs/issues/1906
| -rw-r--r-- | weed/filesys/dir.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go index 6168425af..dc208dcbb 100644 --- a/weed/filesys/dir.go +++ b/weed/filesys/dir.go @@ -552,5 +552,8 @@ func (dir *Dir) saveEntry() error { } func (dir *Dir) FullPath() string { - return string(dir.entry.FullPath) + if dir.wfs.option.FilerMountRootPath == "/" { + return string(dir.entry.FullPath) + } + return string(dir.entry.FullPath)[len(dir.wfs.option.FilerMountRootPath):] } |
