]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crushtool: include cumulative bucket weight in decompile
authorSage Weil <sage@newdream.net>
Tue, 17 May 2011 20:03:38 +0000 (13:03 -0700)
committerSage Weil <sage@newdream.net>
Tue, 17 May 2011 20:03:38 +0000 (13:03 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/crushtool.cc

index e60b623532cb60962e84795cda6ffbab5d5fcf8e..a8cd485c34289d653390e73ea3a9e4774ad283dd 100644 (file)
@@ -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);