From 042139d1ac7ba8ce0890971ca4f8fdc01d491a59 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 17 May 2011 13:03:38 -0700 Subject: [PATCH] crushtool: include cumulative bucket weight in decompile Signed-off-by: Sage Weil --- src/crushtool.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crushtool.cc b/src/crushtool.cc index e60b623532cb6..a8cd485c34289 100644 --- a/src/crushtool.cc +++ b/src/crushtool.cc @@ -529,6 +529,10 @@ static int decompile_crush_bucket_impl(int i, out << " {\n"; out << "\tid " << i << "\t\t# do not change unnecessarily\n"; + out << "\t# weight "; + print_fixedpoint(out, crush.get_bucket_weight(i)); + out << "\n"; + int n = crush.get_bucket_size(i); int alg = crush.get_bucket_alg(i); -- 2.39.5