This option is now filtered out automatically, so these codes are unaccessable.
./bin/ceph osd unset sortbitwise
Invalid command: sortbitwise not in full|pause|noup|nodown|noout|noin|nobackfill|norebalance|norecover|noscrub|nodeep-scrub|notieragent
osd unset full|pause|noup|nodown|noout|noin|nobackfill|norebalance|norecover|noscrub|nodeep-scrub|notieragent : unset <key>
Error EINVAL: invalid command
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
return prepare_unset_flag(op, CEPH_OSDMAP_NODEEP_SCRUB);
else if (key == "notieragent")
return prepare_unset_flag(op, CEPH_OSDMAP_NOTIERAGENT);
- else if (key == "sortbitwise") {
- ss << "the sortbitwise flag is required and cannot be unset";
- err = -EPERM;
- } else {
+ else {
ss << "unrecognized flag '" << key << "'";
err = -EINVAL;
}