]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushTester: return EINVAL if crushtool returns non-zero 5208/head
authorKefu Chai <kchai@redhat.com>
Sat, 11 Jul 2015 15:04:33 +0000 (23:04 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 11 Jul 2015 17:32:42 +0000 (01:32 +0800)
commit7f1c0cc9cd3deab925440b56d82c3e61a8ba5ab1
tree038ad0a42df308c5dd3746eb3f1d551d00d1d442
parent2aaeea145b24b972a0b98549c3527ccf98f4c96f
crush/CrushTester: return EINVAL if crushtool returns non-zero

this backports a tiny part of ec02441, otherwise
CrushTester will return 1, and "ceph" cli will take it
as EPERM, which is miss leading, and fails
osd-crush.sh:TEST_crush_reject_empty.

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