mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 09:41:44 +08:00
serve docker: add missing vfs-read-chunk-streams option in docker volume driver
Some checks failed
Docker beta build / Build image job (push) Has been cancelled
Some checks failed
Docker beta build / Build image job (push) Has been cancelled
This commit is contained in:
parent
b155231cdd
commit
ad122c6f6f
|
@ -251,6 +251,15 @@ func getVFSOption(vfsOpt *vfscommon.Options, opt rc.Params, key string) (ok bool
|
||||||
err = getFVarP(&vfsOpt.ReadAhead, opt, key)
|
err = getFVarP(&vfsOpt.ReadAhead, opt, key)
|
||||||
case "vfs-used-is-size":
|
case "vfs-used-is-size":
|
||||||
vfsOpt.UsedIsSize, err = opt.GetBool(key)
|
vfsOpt.UsedIsSize, err = opt.GetBool(key)
|
||||||
|
case "vfs-read-chunk-streams":
|
||||||
|
intVal, err = opt.GetInt64(key)
|
||||||
|
if err == nil {
|
||||||
|
if intVal >= 0 && intVal <= math.MaxInt {
|
||||||
|
vfsOpt.ChunkStreams = int(intVal)
|
||||||
|
} else {
|
||||||
|
err = fmt.Errorf("key %q (%v) overflows int", key, intVal)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// unprefixed vfs options
|
// unprefixed vfs options
|
||||||
case "no-modtime":
|
case "no-modtime":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user