From 64000f5c451f0a94acd526f680dcac6ac3276201 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 22 Mar 2020 13:09:16 -0700 Subject: [PATCH] FUSE mount: rename under root fix https://github.com/chrislusf/seaweedfs/issues/1242 --- weed/filesys/wfs.go | 3 +++ 1 file changed, 3 insertions(+) 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 }