From 9437cb1b284ec9366b51d660396c2c8a9366b31f Mon Sep 17 00:00:00 2001 From: David Zafman Date: Fri, 20 Mar 2015 16:57:40 -0700 Subject: [PATCH] ceph-objectstore-tool: Output only unsupported features when incomatible Fixes: #11176 Backport: firefly, giant Signed-off-by: David Zafman (cherry picked from commit 5b23f5b5892b36fb7d06efc0d77e64a24ef6e8c9) --- src/tools/ceph_objectstore_tool.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.47.3