From fdd3a692d333f519c6f7faaae619b51417c9a634 Mon Sep 17 00:00:00 2001 From: anant Date: Sat, 14 Nov 2026 02:33:07 +0530 Subject: [PATCH] shell: show -collection, not -c, in ec.balance and ec.rebuild help (#12617) Both usage lines showed [-c EACH_COLLECTION|], but the flag is -collection; there is no -c. ec.rebuild's own Options section already lists -collection. Signed-off-by: anant <170962632+antcybersec@users.noreply.github.com> Co-authored-by: anant <170962632+antcybersec@users.noreply.github.com> --- weed/shell/command_ec_balance.go | 2 +- weed/shell/command_ec_rebuild.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/shell/command_ec_balance.go b/weed/shell/command_ec_balance.go index 9b5f2e9f0e..3f9685104b 100644 --- a/weed/shell/command_ec_balance.go +++ b/weed/shell/command_ec_balance.go @@ -24,7 +24,7 @@ func (c *commandEcBalance) Name() string { func (c *commandEcBalance) Help() string { return `balance all ec shards among all racks and volume servers - ec.balance [-c EACH_COLLECTION|] [-apply] [-dataCenter ] [-shardReplicaPlacement ] [-diskType ] [-volumeIds [,...]] + ec.balance [-collection EACH_COLLECTION|] [-apply] [-dataCenter ] [-shardReplicaPlacement ] [-diskType ] [-volumeIds [,...]] Options: -diskType: the disk type for EC shards (hdd, ssd, or empty for default hdd) diff --git a/weed/shell/command_ec_rebuild.go b/weed/shell/command_ec_rebuild.go index c812b77e03..4369c4a0c9 100644 --- a/weed/shell/command_ec_rebuild.go +++ b/weed/shell/command_ec_rebuild.go @@ -27,7 +27,7 @@ func (c *commandEcRebuild) Name() string { func (c *commandEcRebuild) Help() string { return `find and rebuild missing ec shards among volume servers - ec.rebuild [-c EACH_COLLECTION|] [-apply] [-maxParallelization N] [-diskType=] [-checksum] + ec.rebuild [-collection EACH_COLLECTION|] [-apply] [-maxParallelization N] [-diskType=] [-checksum] Before rebuilding, asks volume servers to recover any shards left unmounted by a missing .ecx index (the index resides only on a peer server). Such shards are