From ebeb16eda507aeeb9f997c5c51c2502898a3eafe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 25 Aug 2022 01:05:56 +0200 Subject: [PATCH] feat: shed: add a --max-size flag to vlog2car --- cmd/lotus-shed/datastore-vlog.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/lotus-shed/datastore-vlog.go b/cmd/lotus-shed/datastore-vlog.go index bc4ba9f77..36abaf995 100644 --- a/cmd/lotus-shed/datastore-vlog.go +++ b/cmd/lotus-shed/datastore-vlog.go @@ -34,12 +34,13 @@ var datastoreVlog2CarCmd = &cli.Command{ Usage: "datastore prefix", Value: "/blocks/", }, + &cli.Uint64Flag{Name: "max-size", Value: 32000}, }, ArgsUsage: "[vlog...]", Action: func(cctx *cli.Context) error { ctx := cctx.Context - maxSz := uint64(31 << 30) + maxSz := uint64(cctx.Uint64("max-size") << 20) carb := &rawCarb{ max: maxSz,