aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-03-22 13:09:16 -0700
committerChris Lu <chris.lu@gmail.com>2020-03-22 13:09:16 -0700
commit64000f5c451f0a94acd526f680dcac6ac3276201 (patch)
treeee091eda38b24a12c55d4b9416899c4290793eb9
parent9f2c9b666b3e06272a9c498b7974dcb2f2c7ba51 (diff)
downloadseaweedfs-64000f5c451f0a94acd526f680dcac6ac3276201.tar.xz
seaweedfs-64000f5c451f0a94acd526f680dcac6ac3276201.zip
FUSE mount: rename under root
fix https://github.com/chrislusf/seaweedfs/issues/1242
-rw-r--r--weed/filesys/wfs.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
index 77438b58e..382617384 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -84,6 +84,9 @@ func NewSeaweedFileSystem(option *Option) *WFS {
}
wfs.root = &Dir{Path: wfs.option.FilerMountRootPath, wfs: wfs}
+ wfs.getNode(filer2.FullPath(wfs.option.FilerMountRootPath), func() fs.Node {
+ return wfs.root
+ })
return wfs
}