From de4b08704172ac31b511dde50e5c11d58d811ca2 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 638ab45b5f41..057a3df6af14 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -2094,8 +2094,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