pass file attributes from filer to mount

This commit is contained in:
Chris Lu
2018-05-14 02:02:17 -07:00
parent 67401f1908
commit 58954bf46f
5 changed files with 68 additions and 26 deletions

View File

@@ -5,15 +5,18 @@ import (
"fmt"
"google.golang.org/grpc"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
"github.com/karlseguin/ccache"
)
type WFS struct {
filer string
filer string
listDirectoryEntriesCache *ccache.Cache
}
func NewSeaweedFileSystem(filer string) *WFS {
return &WFS{
filer: filer,
filer: filer,
listDirectoryEntriesCache: ccache.New(ccache.Configure().MaxSize(6000).ItemsToPrune(100)),
}
}