]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: add rule/set checks, conversion helpers
authorSage Weil <sage@redhat.com>
Tue, 28 Feb 2017 04:20:26 +0000 (22:20 -0600)
committerSage Weil <sage@redhat.com>
Mon, 19 Jun 2017 23:08:09 +0000 (19:08 -0400)
commit7af0dd6bc88fcb497dfe7e67d5806c016d6b0727
tree649d261487a6435fb1c5d55d56c5aeb7dfe09f02
parentd85f4bb4cadbc613cbfbaa5fa2c05e33ac1d22ad
crush: add rule/set checks, conversion helpers

Add chekcs to see whether the CRUSH map has legacy ruleset != rule id
or (worse yet) multiple rules sharing the same ruleset.

Add a method to convert the former case, and error out on the latter.

Signed-off-by: Sage Weil <sage@redhat.com>
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h