]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: fail if unable to update device class in crush
authorKefu Chai <kchai@redhat.com>
Thu, 28 Sep 2017 07:30:43 +0000 (15:30 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 29 Sep 2017 03:01:53 +0000 (11:01 +0800)
commit1087350aaca6adfc698aa00eb37d6064557b598b
tree9ecc44604099ae486648907c35535931b63080ba
parent1aef50a1edbd2a41e7694ffb61bfd546e5648bf9
osd: fail if unable to update device class in crush

device-class is supported since luminous, so we should fail the init()
if device-class is not updated in crush.

this reverts 244db740: if the device class changes then the user should
either follow the instruction to "ceph osd crush rm-device-class" or fix
CrushWrapper::update_device_class().

this silences clang analyzer warning of:

Value stored to 'r' is never read

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/OSD.cc