]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: disallow crush buckets of type 0
authorSage Weil <sage@inktank.com>
Wed, 5 Mar 2014 21:15:58 +0000 (13:15 -0800)
committerSage Weil <sage@inktank.com>
Wed, 5 Mar 2014 21:15:58 +0000 (13:15 -0800)
commit772968e60ba6e0c1ce49b18fbb6d3f2fb7474373
treeeaacfde77908c269b5c9a5c96dbeace62b80a1b9
parentca12e0d92ee22fc999d68853011b2bef926c89b2
mon/OSDMonitor: disallow crush buckets of type 0

Prevent creation of buckets of type 0 ('osd', 'device', etc.), as they
will confusing the mapping algorithm.

Signed-off-by: Sage Weil <sage@inktank.com>
qa/workunits/mon/crush_ops.sh
src/crush/CrushWrapper.h
src/mon/OSDMonitor.cc
src/test/crush/TestCrushWrapper.cc