]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/cli/crushtool/add-item.t
bump version to 12.0.3-pve3
[ceph.git] / ceph / src / test / cli / crushtool / add-item.t
CommitLineData
7c673cae
FG
1 $ crushtool -i "$TESTDIR/simple.template" --add-item 0 1.0 device0 --loc host host0 --loc cluster cluster0 -o one > /dev/null
2 $ crushtool -i one --add-item 1 1.0 device1 --loc host host0 --loc cluster cluster0 -o two > /dev/null
3 $ crushtool -d two -o final
4 $ cmp final "$TESTDIR/simple.template.two"
5 $ crushtool -i two --add-item 1 1.0 device1 --loc host host0 --loc cluster cluster0 -o three 2>/dev/null >/dev/null || echo FAIL
6 FAIL
7 $ crushtool -i two --remove-item device1 -o four > /dev/null
8 $ crushtool -d four -o final
9 $ cmp final "$TESTDIR/simple.template.four"
10 $ crushtool -i two --update-item 1 2.0 osd1 --loc host host1 --loc cluster cluster0 -o five > /dev/null
11 $ crushtool -d five -o final
12 $ cmp final "$TESTDIR/simple.template.five"
13 $ crushtool -i five --update-item 1 2.0 osd1 --loc host host1 --loc cluster cluster0 -o six > /dev/null
14 $ crushtool -i five --show-location 1
15 cluster\tcluster0 (esc)
16 host\thost1 (esc)
17 $ crushtool -d six -o final
18 $ cmp final "$TESTDIR/simple.template.five"