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

Signed-off-by: David Zafman <dzafman@redhat.com>
src/tools/ceph_objectstore_tool.cc

index cf27e11f4f3df57fc228e6f5c84dbec40e046d24..8b1741ed1a149c09e913d9b0d672886f7e91efe5 100644 (file)
@@ -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;
   }