]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-objectstore-tool: Output only unsupported features when incomatible 4127/head
authorDavid Zafman <dzafman@redhat.com>
Fri, 20 Mar 2015 23:57:40 +0000 (16:57 -0700)
committerDavid Zafman <dzafman@redhat.com>
Sat, 21 Mar 2015 00:25:40 +0000 (17:25 -0700)
Fixes: #11176
Backport: firefly, giant

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 5b23f5b5892b36fb7d06efc0d77e64a24ef6e8c9)

src/tools/ceph_objectstore_tool.cc

index 638ab45b5f413b5ff0dd485e038d9df78a336ddb..057a3df6af143a2f6cde75ed9de5561ccb5e7cac 100644 (file)
@@ -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;
   }