From: David Zafman Date: Fri, 20 Mar 2015 23:57:40 +0000 (-0700) Subject: ceph-objectstore-tool: Output only unsupported features when incomatible X-Git-Tag: v0.80.10~34^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9437cb1b284ec9366b51d660396c2c8a9366b31f;p=ceph.git ceph-objectstore-tool: Output only unsupported features when incomatible Fixes: #11176 Backport: firefly, giant Signed-off-by: David Zafman (cherry picked from commit 5b23f5b5892b36fb7d06efc0d77e64a24ef6e8c9) --- diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index ddab16ff12c..affa11c7241 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -2506,8 +2506,9 @@ int main(int argc, char **argv) cerr << "On-disk features: " << superblock.compat_features << std::endl; } if (supported.compare(superblock.compat_features) == -1) { + CompatSet unsupported = supported.unsupported(superblock.compat_features); cerr << "On-disk OSD incompatible features set " - << superblock.compat_features << std::endl; + << unsupported << std::endl; ret = EINVAL; goto out; }