diff options
author | mychoxin <mychoxin@gmail.com> | 2017-07-30 06:28:41 +0200 |
---|---|---|
committer | mychoxin <mychoxin@gmail.com> | 2017-07-30 06:28:41 +0200 |
commit | ba26907d71c71f15cbd70d84717cf1dc716f554d (patch) | |
tree | 0bc49a14b72c36edd5847c57b62e881757b3a103 /src/ceph_osd.cc | |
parent | Merge pull request #16669 from Yan-waller/wip-walle-0729testpglogcompile (diff) | |
download | ceph-ba26907d71c71f15cbd70d84717cf1dc716f554d.tar.xz ceph-ba26907d71c71f15cbd70d84717cf1dc716f554d.zip |
print more information when run ceph-osd with 'chech options'
Signed-off-by: mychoxin <mychoxin@gmail.com>
Diffstat (limited to 'src/ceph_osd.cc')
-rw-r--r-- | src/ceph_osd.cc | 12 |
1 files changed, 6 insertions, 6 deletions
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); } } |