From ad122c6f6fb2eb0d2c0cca1c7c7cfa2a454106a8 Mon Sep 17 00:00:00 2001 From: Divyam <47589864+divyam234@users.noreply.github.com> Date: Mon, 9 Sep 2024 14:37:25 +0530 Subject: [PATCH] serve docker: add missing vfs-read-chunk-streams option in docker volume driver --- cmd/serve/docker/options.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmd/serve/docker/options.go b/cmd/serve/docker/options.go index 9779828f8..eb9483ed1 100644 --- a/cmd/serve/docker/options.go +++ b/cmd/serve/docker/options.go @@ -251,6 +251,15 @@ func getVFSOption(vfsOpt *vfscommon.Options, opt rc.Params, key string) (ok bool err = getFVarP(&vfsOpt.ReadAhead, opt, key) case "vfs-used-is-size": 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 case "no-modtime":