diff --git a/src/include/rados.h b/src/include/rados.h index c8bc8ac4c0c..0cc9380d824 100644 --- a/src/include/rados.h +++ b/src/include/rados.h @@ -150,6 +150,12 @@ extern const char *ceph_osd_state_name(int s); #define CEPH_OSDMAP_REQUIRE_KRAKEN (1<<17) /* require kraken for booting osds */ #define CEPH_OSDMAP_REQUIRE_LUMINOUS (1<<18) /* require l for booting osds */ +/* these are hidden in 'ceph status' view */ +#define CEPH_OSDMAP_SEMIHIDDEN_FLAGS (CEPH_OSDMAP_REQUIRE_JEWEL| \ + CEPH_OSDMAP_REQUIRE_KRAKEN | \ + CEPH_OSDMAP_REQUIRE_LUMINOUS | \ + CEPH_OSDMAP_SORTBITWISE) + /* * The error code to return when an OSD can't handle a write * because it is too large. diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index c4e388f86cf..ff0d194ae15 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -2879,8 +2879,9 @@ void OSDMap::print_summary(Formatter *f, ostream& out) const if (get_num_pg_temp()) out << "; " << get_num_pg_temp() << " remapped pgs"; out << "\n"; - if (flags) - out << " flags " << get_flag_string() << "\n"; + uint64_t important_flags = flags & ~CEPH_OSDMAP_SEMIHIDDEN_FLAGS; + if (important_flags) + out << " flags " << get_flag_string(important_flags) << "\n"; } }