]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/options: 'can update at runtime' in 'config help'
authorSage Weil <sage@redhat.com>
Thu, 11 Jan 2018 14:31:02 +0000 (08:31 -0600)
committerSage Weil <sage@redhat.com>
Tue, 6 Mar 2018 20:44:49 +0000 (14:44 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/common/options.cc

index 837c6e1d9dde9add20d9474dc936eec55bd3053e..7834865dbd1154c47da9ac99a354e5670c6814cc 100644 (file)
@@ -199,6 +199,8 @@ void Option::dump(Formatter *f) const
 
   dump_value("min", min, f);
   dump_value("max", max, f);
+
+  f->dump_bool("can_update_at_runtime", is_safe());
 }
 
 ostream& operator<<(ostream& out, const Option::value_t& v)
@@ -253,6 +255,7 @@ void Option::print(ostream *out) const
     *out << "  Minimum: " << stringify(min) << "\n"
         << "  Maximum: " << stringify(max) << "\n";
   }
+  *out << "  Can update at runtime: " << (is_safe() ? "true" : "false") << "\n";
   if (!services.empty()) {
     *out << "  Services: " << services << "\n";
   }