From 5b23f5b5892b36fb7d06efc0d77e64a24ef6e8c9 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 --- 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 cf27e11f4f3df..8b1741ed1a149 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -2557,8 +2557,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.39.5