For options with a defined set of allowed values::
.set_enum_allowed({"none", "crc32c", "crc32c_16", "crc32c_8", "xxhash32", "xxhash64"})
+
+Flags
+-----
+
+* **RUNTIME**: the value can be updated at runtime
+* **NO_MON_UPDATE**: Daemons/clients do not pull this value from the monitor config database. We disallow setting this option via 'ceph config set ...'. This option should be configured via ceph.conf or via the command line.
+* **STARTUP**: option takes effect only during daemon startup
+* **CLUSTER_CREATE**: option only affects cluster creation
+* **CREATE**: option only affects daemon creation
dump_value("max", max, f);
f->dump_bool("can_update_at_runtime", can_update_at_runtime());
+
+ f->open_array_section("flags");
+ if (has_flag(FLAG_RUNTIME)) {
+ f->dump_string("option", "runtime");
+ }
+ if (has_flag(FLAG_NO_MON_UPDATE)) {
+ f->dump_string("option", "no_mon_update");
+ }
+ if (has_flag(FLAG_STARTUP)) {
+ f->dump_string("option", "startup");
+ }
+ if (has_flag(FLAG_CLUSTER_CREATE)) {
+ f->dump_string("option", "cluster_create");
+ }
+ if (has_flag(FLAG_CREATE)) {
+ f->dump_string("option", "create");
+ }
+ f->close_section();
}
std::string Option::to_str(const Option::value_t& v)