]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmap: make flag names match
authorSage Weil <sage@inktank.com>
Thu, 8 Nov 2012 14:56:21 +0000 (06:56 -0800)
committerSage Weil <sage@inktank.com>
Thu, 8 Nov 2012 14:56:57 +0000 (06:56 -0800)
It's 'ceph osd set noup', so make the flag name 'noup', to avoid any
confusion.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSDMap.cc

index e0c4779d9004f376959000462131102318ca9ed4..b76023386baa5117d1af11125a68a5935035f5a7 100644 (file)
@@ -1337,17 +1337,17 @@ string OSDMap::get_flag_string(unsigned f)
   if (f & CEPH_OSDMAP_PAUSEREC)
     s += ",pauserec";
   if (f & CEPH_OSDMAP_NOUP)
-    s += ",no-up";
+    s += ",noup";
   if (f & CEPH_OSDMAP_NODOWN)
-    s += ",no-down";
+    s += ",nodown";
   if (f & CEPH_OSDMAP_NOOUT)
-    s += ",no-out";
+    s += ",noout";
   if (f & CEPH_OSDMAP_NOIN)
-    s += ",no-in";
+    s += ",noin";
   if (f & CEPH_OSDMAP_NOBACKFILL)
-    s += ",no-backfill";
+    s += ",nobackfill";
   if (f & CEPH_OSDMAP_NORECOVER)
-    s += ",no-recover";
+    s += ",norecover";
   if (s.length())
     s = s.erase(0, 1);
   return s;