]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushTester: check for overlapped rules 7139/head
authorKefu Chai <kchai@redhat.com>
Thu, 7 Jan 2016 10:04:59 +0000 (18:04 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 7 Jan 2016 13:39:49 +0000 (21:39 +0800)
commitcf9cd8019dcbfbda8526be34562d9f604eb695a2
treeae740dae4de9de84162eaf4cf78ac6b5502759d8
parent1db6eeebbf00f7e8addc2faa4e4416a11909d323
crush/CrushTester: check for overlapped rules

list rules if there are more than one of them can be chosen by the CRUSH
for a given ruleset, pool type and a pool size. this is not entirely a
buggy crush map, but it might be worthy to get the attention of the user
that multiple rules overlap with each other, and only the first one will
be used by the CRUSH.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crush/CrushTester.cc
src/crush/CrushTester.h
src/test/cli/crushtool/check-overlapped-rules.crushmap.txt [new file with mode: 0644]
src/test/cli/crushtool/check-overlapped-rules.t [new file with mode: 0644]
src/tools/crushtool.cc