]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
print more information when run ceph-osd with 'chech options'
authormychoxin <mychoxin@gmail.com>
Sun, 30 Jul 2017 04:28:41 +0000 (12:28 +0800)
committermychoxin <mychoxin@gmail.com>
Sun, 30 Jul 2017 04:28:41 +0000 (12:28 +0800)
Signed-off-by: mychoxin <mychoxin@gmail.com>
src/ceph_osd.cc

index f3d585b47759a4d18b0c2600987edca7424d8ac8..4cf02b9b1d6c470b1b51e3e7673e393ea6dd52c1 100644 (file)
@@ -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);
     }
   }