change to use fuse file system

This commit is contained in:
chrislu
2022-02-11 21:35:09 -08:00
parent 45a0fda9bd
commit 180445f5a8
3 changed files with 28 additions and 46 deletions

View File

@@ -87,6 +87,10 @@ func (wfs *WFS) Root() *Directory {
return &wfs.root
}
func (wfs *WFS) String() string {
return "seaweedfs"
}
func (option *Option) setupUniqueCacheDirectory() {
cacheUniqueId := util.Md5String([]byte(option.MountDirectory + string(option.FilerAddresses[0]) + option.FilerMountRootPath + util.Version()))[0:8]
option.uniqueCacheDir = path.Join(option.CacheDir, cacheUniqueId)