summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zafman <david.zafman@inktank.com>2013-09-17 14:59:15 -0700
committerDavid Zafman <david.zafman@inktank.com>2013-09-26 11:24:40 -0700
commitbb195c24381b813252340a6b19b6021a97f99466 (patch)
treecef6bf6967831940ad60da898e09ec6b0143da2f
parent4bc8f09f0f113c4163b696b79250eac8637f37b8 (diff)
downloadceph-bb195c24381b813252340a6b19b6021a97f99466.tar.gz
osd: read_superblock() not outputing unsupported features when incompatible
Use working version of CompatSet::unsupported() to improve log output Backport: dumpling, cuttlefish Signed-off-by: David Zafman <david.zafman@inktank.com>
-rw-r--r--src/osd/OSD.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc
index 1cdc232b064..4d8a0b4d0d5 100644
--- a/src/osd/OSD.cc
+++ b/src/osd/OSD.cc
@@ -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;
}
}