diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
commit | e6918187568dbd01842d8d1d2c808ce16a894239 (patch) | |
tree | 64f88b554b444a49f656b6c656111a145cbbaa28 /src/test/cli/crushtool/adjust-item-weight.t | |
parent | Initial commit. (diff) | |
download | ceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip |
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/cli/crushtool/adjust-item-weight.t')
-rw-r--r-- | src/test/cli/crushtool/adjust-item-weight.t | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/cli/crushtool/adjust-item-weight.t b/src/test/cli/crushtool/adjust-item-weight.t new file mode 100644 index 000000000..a6f2161b9 --- /dev/null +++ b/src/test/cli/crushtool/adjust-item-weight.t @@ -0,0 +1,17 @@ + $ crushtool -i "$TESTDIR/simple.template" --add-item 0 1.0 device0 --loc host host0 --loc cluster cluster0 -o one > /dev/null + +# +# add device0 into host=fake, the weight of device0 in host=host0 is 1.0, the weight of device0 in host=fake is 2.0 +# + + $ crushtool -i one --add-item 0 2.0 device0 --loc host fake --loc cluster cluster0 -o two > /dev/null + $ crushtool -d two -o final + $ diff final "$TESTDIR/simple.template.adj.two" + +# +# update the weight of device0 in host=host0, it will not affect the weight of device0 in host=fake +# + + $ crushtool -i two --update-item 0 3.0 device0 --loc host host0 --loc cluster cluster0 -o three > /dev/null + $ crushtool -d three -o final + $ diff final "$TESTDIR/simple.template.adj.three" |