From: mychoxin Date: Sun, 30 Jul 2017 04:28:41 +0000 (+0800) Subject: print more information when run ceph-osd with 'chech options' X-Git-Tag: v12.1.3~135^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ba26907d71c71f15cbd70d84717cf1dc716f554d;p=ceph-ci.git print more information when run ceph-osd with 'chech options' Signed-off-by: mychoxin --- diff --git a/src/ceph_osd.cc b/src/ceph_osd.cc index f3d585b4775..4cf02b9b1d6 100644 --- a/src/ceph_osd.cc +++ b/src/ceph_osd.cc @@ -333,28 +333,28 @@ int main(int argc, const char **argv) } if (check_wants_journal) { if (store->wants_journal()) { - cout << "yes" << std::endl; + cout << "wants journal: yes" << std::endl; exit(0); } else { - cout << "no" << std::endl; + cout << "wants journal: no" << std::endl; exit(1); } } if (check_allows_journal) { if (store->allows_journal()) { - cout << "yes" << std::endl; + cout << "allows journal: yes" << std::endl; exit(0); } else { - cout << "no" << std::endl; + cout << "allows journal: no" << std::endl; exit(1); } } if (check_needs_journal) { if (store->needs_journal()) { - cout << "yes" << std::endl; + cout << "needs journal: yes" << std::endl; exit(0); } else { - cout << "no" << std::endl; + cout << "needs journal: no" << std::endl; exit(1); } }