]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: expose require_jewel_osds flag to user 9248/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 21 May 2016 06:11:55 +0000 (14:11 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 24 May 2016 01:02:19 +0000 (09:02 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
qa/workunits/cephtool/test.sh
src/mon/MonCommands.h
src/osd/OSDMap.cc

index 8ddfa30d1991fb6ab6de0c0a2c6af6432f2f0ea8..f6f3ca5b52f8ad1a739b2856c2efbdbf3a740914 100755 (executable)
@@ -1089,6 +1089,8 @@ function test_mon_osd()
   ceph osd set sortbitwise  # new backends cant handle nibblewise
   expect_false ceph osd set bogus
   expect_false ceph osd unset bogus
+  ceph osd set require_jewel_osds
+  expect_false ceph osd unset require_jewel_osds
 
   ceph osd set noup
   ceph osd down 0
index 36120f991db1d96d0e5a211fa11142e3b309a72d..1971350fda122b31e4b5c89718565000f417ff30 100644 (file)
@@ -628,7 +628,7 @@ COMMAND("osd erasure-code-profile ls", \
        "list all erasure code profiles", \
        "osd", "r", "cli,rest")
 COMMAND("osd set " \
-       "name=key,type=CephChoices,strings=full|pause|noup|nodown|noout|noin|nobackfill|norebalance|norecover|noscrub|nodeep-scrub|notieragent|sortbitwise", \
+       "name=key,type=CephChoices,strings=full|pause|noup|nodown|noout|noin|nobackfill|norebalance|norecover|noscrub|nodeep-scrub|notieragent|sortbitwise|require_jewel_osds", \
        "set <key>", "osd", "rw", "cli,rest")
 COMMAND("osd unset " \
        "name=key,type=CephChoices,strings=full|pause|noup|nodown|noout|noin|nobackfill|norebalance|norecover|noscrub|nodeep-scrub|notieragent|sortbitwise", \
index 25a47c53bddce7638e8ceab15d1c78d7a8fd4c4e..04bb75e1cbacda30875e3ec74890bc8993ca1ad9 100644 (file)
@@ -2379,6 +2379,8 @@ string OSDMap::get_flag_string(unsigned f)
     s += ",notieragent";
   if (f & CEPH_OSDMAP_SORTBITWISE)
     s += ",sortbitwise";
+  if (f & CEPH_OSDMAP_REQUIRE_JEWEL)
+    s += ",require_jewel_osds";
   if (s.length())
     s.erase(0, 1);
   return s;