]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crushtool: fix straw2 cli test
authorSage Weil <sage@redhat.com>
Tue, 10 Mar 2015 13:32:51 +0000 (06:32 -0700)
committerSage Weil <sage@redhat.com>
Tue, 10 Mar 2015 13:46:49 +0000 (06:46 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/cli/crushtool/straw2.t
src/test/cli/crushtool/straw2.txt

index fee1c67ae6286cbf8325c75c37827c31f861dfa6..8638dea5fb24c3a9514c29d15a6c3a445be90b31 100644 (file)
@@ -1,2 +1,2 @@
- $ crushtool -c "$TESTDIR/straw2.txt" -o straw2
- $ rm straw2
 $ crushtool -c "$TESTDIR/straw2.txt" -o straw2
 $ rm straw2
index 9853f175e0d5ac2c4652a61f7ee78791539c70d6..6a4a7e59fa8a4f14c1421460bd2ff9c752c4e39f 100644 (file)
@@ -17,16 +17,16 @@ type 2 default
 host host0 {
         id -1           # do not change unnecessarily
         # weight 1.000
-        alg foo
+        alg straw2
         hash 0  # rjenkins1
-        item device0 weight 0.000
+        item device0 weight 1.000
 }
 default default {
         id -2           # do not change unnecessarily
         # weight 1.000
-        alg straw
+        alg straw2
         hash 0  # rjenkins1
-        item host0 weight 0.000
+        item host0 weight 1.000
 }
 
 # rules