mount2: avoid double listing directories

This commit is contained in:
chrislu
2022-02-15 01:44:17 -08:00
parent 222798d926
commit 17ac5244c3
2 changed files with 77 additions and 8 deletions

View File

@@ -67,6 +67,7 @@ type WFS struct {
concurrentWriters *util.LimitedConcurrentExecutor
inodeToPath *InodeToPath
fhmap *FileHandleToInode
dhmap *DirectoryHandleToInode
}
func NewSeaweedFileSystem(option *Option) *WFS {
@@ -76,6 +77,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
signature: util.RandomInt32(),
inodeToPath: NewInodeToPath(),
fhmap: NewFileHandleToInode(),
dhmap: NewDirectoryHandleToInode(),
}
wfs.root = Directory{