mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-12-17 17:51:20 +08:00
pass file attributes from filer to mount
This commit is contained in:
@@ -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)),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user