From 221ea762592b865d269d6b627b3584e880839228 Mon Sep 17 00:00:00 2001 From: mulhern Date: Thu, 8 Aug 2024 16:12:28 -0400 Subject: [PATCH] Add crypt_metadata_str to output Signed-off-by: mulhern --- src/bin/utils/predict_usage.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/utils/predict_usage.rs b/src/bin/utils/predict_usage.rs index 9a1008eee1..51adb9d472 100644 --- a/src/bin/utils/predict_usage.rs +++ b/src/bin/utils/predict_usage.rs @@ -246,8 +246,10 @@ pub fn predict_pool_usage( let stratis_metadata_str = Value::String((*((total_size - non_metadata_size).bytes())).to_string()); + let crypt_metadata_str = Value::String((*crypt_metadata_size).to_string()); + let json = json! { - {"total": total_size_str, "used": used_size_str, "free": avail_size_str, "stratis-admin-space": stratis_admin_str, "stratis-metadata-space": stratis_metadata_str} + {"total": total_size_str, "used": used_size_str, "free": avail_size_str, "stratis-admin-space": stratis_admin_str, "stratis-metadata-space": stratis_metadata_str, "crypt-metadata-space": crypt_metadata_str} }; println!("{json}");