aboutsummaryrefslogtreecommitdiff
path: root/src/garage/cli/structs.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-01-26 15:04:32 +0100
committerAlex Auvolat <alex@adnab.me>2023-01-26 15:04:32 +0100
commitefb6b6e868be1be0725125485810ce96e74ed124 (patch)
tree19b63f6ac98b3125a832407c5e8618e6443face5 /src/garage/cli/structs.rs
parentf251b4721f2c016e3a90d913cb766a57a53a3d30 (diff)
downloadgarage-efb6b6e868be1be0725125485810ce96e74ed124.tar.gz
garage-efb6b6e868be1be0725125485810ce96e74ed124.zip
Disk space report
Report available disk space on nodes and calculate cluster-wide available space in `garage stats` (fix #479)
Diffstat (limited to 'src/garage/cli/structs.rs')
-rw-r--r--src/garage/cli/structs.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/garage/cli/structs.rs b/src/garage/cli/structs.rs
index 661a71f0..01ae92da 100644
--- a/src/garage/cli/structs.rs
+++ b/src/garage/cli/structs.rs
@@ -504,6 +504,11 @@ pub struct StatsOpt {
/// Gather detailed statistics (this can be long)
#[structopt(short = "d", long = "detailed")]
pub detailed: bool,
+
+ /// Don't show global cluster stats (internal use in RPC)
+ #[structopt(skip)]
+ #[serde(default)]
+ pub skip_global: bool,
}
#[derive(Serialize, Deserialize, StructOpt, Debug, Eq, PartialEq, Clone)]