implemented priority preloading
This commit is contained in:
parent
86bd1cd1e5
commit
eb6272e411
7 changed files with 134 additions and 107 deletions
|
|
@ -46,7 +46,7 @@ func main() {
|
|||
flag.StringVar(&listenHttp, "listen", "127.0.0.1:8080", "listen addr:port")
|
||||
flag.StringVar(&listenWebdav, "webdav", "", "listen addr:port for webdav")
|
||||
flag.StringVar(&listenCache, "cache", "", "listen addr:port for cache only")
|
||||
flag.IntVar(&max, "max", -1, "max parallel preloads")
|
||||
flag.IntVar(&max, "max", 1, "max parallel preloads")
|
||||
flag.IntVar(&bs, "bs", -1, "tune preload buffer size in bytes (default: 8192)")
|
||||
flag.Int64Var("a, "quota", 1, "max disk usage quota for the dst cache in GiB")
|
||||
flag.BoolVar(&block, "block", true, "block until sftp is connected")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue