diff options
author | Alex Auvolat <alex@adnab.me> | 2021-10-27 10:36:04 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-10-27 11:14:55 +0200 |
commit | 6b47c294f570b141a2349d5b6da537c0b64d165d (patch) | |
tree | 9716a373adc6b51a249af015e2a461904210d4ba /src/garage/cli | |
parent | 28c015d9ffcb3255295572465654fdca680b1964 (diff) | |
download | garage-6b47c294f570b141a2349d5b6da537c0b64d165d.tar.gz garage-6b47c294f570b141a2349d5b6da537c0b64d165d.zip |
Refactoring on repair commandscli-verify-integrity
Diffstat (limited to 'src/garage/cli')
-rw-r--r-- | src/garage/cli/structs.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/garage/cli/structs.rs b/src/garage/cli/structs.rs index 588900a3..620be9ef 100644 --- a/src/garage/cli/structs.rs +++ b/src/garage/cli/structs.rs @@ -265,7 +265,7 @@ pub struct RepairOpt { pub yes: bool, #[structopt(subcommand)] - pub what: Option<RepairWhat>, + pub what: RepairWhat, } #[derive(Serialize, Deserialize, StructOpt, Debug, Eq, PartialEq, Clone)] @@ -283,8 +283,8 @@ pub enum RepairWhat { #[structopt(name = "block_refs")] BlockRefs, /// Verify integrity of all blocks on disc (extremely slow, i/o intensive) - #[structopt(name = "blocks_integrity")] - BlockIntegrity { + #[structopt(name = "scrub")] + Scrub { /// Limit on i/o speed, in B/s #[structopt(name = "limit")] limit: Option<usize>, |