chrislu 3 years ago
parent
commit
45a0fda9bd
  1. 4
      weed/mount/weedfs.go

4
weed/mount/weedfs.go

@ -7,6 +7,7 @@ import (
"github.com/chrislusf/seaweedfs/weed/storage/types"
"github.com/chrislusf/seaweedfs/weed/util"
"github.com/chrislusf/seaweedfs/weed/util/grace"
"github.com/hanwen/go-fuse/v2/fuse"
"google.golang.org/grpc"
"os"
"path"
@ -49,6 +50,8 @@ type Option struct {
}
type WFS struct {
// follow https://github.com/hanwen/go-fuse/blob/master/fuse/api.go
fuse.RawFileSystem
fs.Inode
option *Option
metaCache *meta_cache.MetaCache
@ -59,6 +62,7 @@ type WFS struct {
func NewSeaweedFileSystem(option *Option) *WFS {
wfs := &WFS{
RawFileSystem: fuse.NewDefaultRawFileSystem(),
option: option,
signature: util.RandomInt32(),
}

Loading…
Cancel
Save