diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-05-28 13:24:48 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-05-28 13:24:48 -0700 |
| commit | 8ab7dd9d08dbf326046bfcf0c1fac5d171600a7d (patch) | |
| tree | 31740591e8c648bbee74f652cc44c5f637e4413a /weed/filesys/wfs.go | |
| parent | d0b238d2db81093b7f02141d4f70b446fcd0b2cd (diff) | |
| download | seaweedfs-8ab7dd9d08dbf326046bfcf0c1fac5d171600a7d.tar.xz seaweedfs-8ab7dd9d08dbf326046bfcf0c1fac5d171600a7d.zip | |
weed mount add options for collection and replication
Diffstat (limited to 'weed/filesys/wfs.go')
| -rw-r--r-- | weed/filesys/wfs.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index 1b843e2d7..b9cb0210b 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -11,12 +11,16 @@ import ( type WFS struct { filer string listDirectoryEntriesCache *ccache.Cache + collection string + replication string } -func NewSeaweedFileSystem(filer string) *WFS { +func NewSeaweedFileSystem(filer string, collection string, replication string) *WFS { return &WFS{ - filer: filer, + filer: filer, listDirectoryEntriesCache: ccache.New(ccache.Configure().MaxSize(6000).ItemsToPrune(100)), + collection: collection, + replication: replication, } } |
