]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: show "full" or "nearfull" in osdmap summary line
authorSage Weil <sage.weil@dreamhost.com>
Mon, 18 Apr 2011 16:57:55 +0000 (09:57 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Mon, 18 Apr 2011 16:57:55 +0000 (09:57 -0700)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/OSDMap.cc

index 937f98108c0c29b99e9f6c3b264f219ddfb23aa1..95c342ed397f58fc4c8ea52ba81335aef06bd875 100644 (file)
@@ -91,6 +91,10 @@ void OSDMap::print_summary(ostream& out) const
       << get_num_osds() << " osds: "
       << get_num_up_osds() << " up, " 
       << get_num_in_osds() << " in";
+  if (test_flag(CEPH_OSDMAP_FULL))
+    out << " full";
+  else if (test_flag(CEPH_OSDMAP_NEARFULL))
+    out << " nearfull";
 }