initial code repo
[stor4nfv.git] / src / ceph / src / test / cli / crushtool / reweight_multiple.t
diff --git a/src/ceph/src/test/cli/crushtool/reweight_multiple.t b/src/ceph/src/test/cli/crushtool/reweight_multiple.t
new file mode 100644 (file)
index 0000000..7eff673
--- /dev/null
@@ -0,0 +1,5 @@
+  $ crushtool -c "$TESTDIR/simple.template.multitree" -o mt
+  $ crushtool -i mt --reweight-item osd1 2.5 -o mt
+  crushtool reweighting item osd1 to 2.5
+  $ crushtool -d mt -o mt.txt
+  $ diff mt.txt "$TESTDIR/simple.template.multitree.reweighted"