]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdmaptool: fail --import-crush if crush max_devices > osdmap max_osd
authorSage Weil <sage@newdream.net>
Sat, 21 May 2011 19:55:16 +0000 (12:55 -0700)
committerSage Weil <sage@newdream.net>
Sat, 21 May 2011 19:55:16 +0000 (12:55 -0700)
commite9754d88ce9fd0df4ba835fef0f3b1d47e0245da
tree56125dd5bcdb0774bc78e553c3d5297a3de967a7
parent3a2acefebd5c1626df997f676ed3b61deb8c6c36
osdmaptool: fail --import-crush if crush max_devices > osdmap max_osd

Crush will spew non-deterministic badness if it walks off the end of
the osd_weight vector.

Signed-off-by: Sage Weil <sage@newdream.net>
src/osdmaptool.cc