From: Sage Weil Date: Thu, 8 Nov 2012 14:56:21 +0000 (-0800) Subject: osdmap: make flag names match X-Git-Tag: v0.55~152^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8ccccbbfee556636a7ac52060beb4818624b29b6;p=ceph.git osdmap: make flag names match It's 'ceph osd set noup', so make the flag name 'noup', to avoid any confusion. Signed-off-by: Sage Weil --- diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index e0c4779d9004..b76023386baa 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -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;