]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: read_superblock() not outputing unsupported features when incompatible
authorDavid Zafman <david.zafman@inktank.com>
Tue, 17 Sep 2013 21:59:15 +0000 (14:59 -0700)
committerDavid Zafman <david.zafman@inktank.com>
Thu, 26 Sep 2013 18:24:40 +0000 (11:24 -0700)
Use working version of CompatSet::unsupported() to improve log output

Backport: dumpling, cuttlefish

Signed-off-by: David Zafman <david.zafman@inktank.com>
src/osd/OSD.cc

index 1cdc232b0640b340ad6311d38d9aefda516d75fc..4d8a0b4d0d5b48234ec51eb447bfb0e92102fe71 100644 (file)
@@ -1721,13 +1721,13 @@ int OSD::read_superblock()
     derr << " daemon features " << osd_compat << dendl;
 
     if (osd_compat.writeable(superblock.compat_features)) {
-      derr << "it is still writeable, though. Missing features:" << dendl;
       CompatSet diff = osd_compat.unsupported(superblock.compat_features);
+      derr << "it is still writeable, though. Missing features: " << diff << dendl;
       return -EOPNOTSUPP;
     }
     else {
-      derr << "Cannot write to disk! Missing features:" << dendl;
       CompatSet diff = osd_compat.unsupported(superblock.compat_features);
+      derr << "Cannot write to disk! Missing features: " << diff << dendl;
       return -EOPNOTSUPP;
     }
   }