From: Sage Weil Date: Tue, 17 May 2011 20:03:38 +0000 (-0700) Subject: crushtool: include cumulative bucket weight in decompile X-Git-Tag: v0.29~86^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=042139d1ac7ba8ce0890971ca4f8fdc01d491a59;p=ceph.git crushtool: include cumulative bucket weight in decompile Signed-off-by: Sage Weil --- diff --git a/src/crushtool.cc b/src/crushtool.cc index e60b623532cb..a8cd485c3428 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);