From ba26907d71c71f15cbd70d84717cf1dc716f554d Mon Sep 17 00:00:00 2001 From: mychoxin Date: Sun, 30 Jul 2017 12:28:41 +0800 Subject: [PATCH] print more information when run ceph-osd with 'chech options' Signed-off-by: mychoxin --- src/ceph_osd.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ceph_osd.cc b/src/ceph_osd.cc index f3d585b47759..4cf02b9b1d6c 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); } } -- 2.47.3