add open release, refactor

This commit is contained in:
chrislu
2022-02-13 19:14:34 -08:00
parent 072f923a9b
commit bb9919b07a
8 changed files with 242 additions and 126 deletions

View File

@@ -60,6 +60,7 @@ type WFS struct {
root Directory
signature int32
inodeToPath *InodeToPath
fhmap *FileHandleToInode
}
func NewSeaweedFileSystem(option *Option) *WFS {
@@ -68,6 +69,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
option: option,
signature: util.RandomInt32(),
inodeToPath: NewInodeToPath(),
fhmap: NewFileHandleToInode(),
}
wfs.root = Directory{