From bb195c24381b813252340a6b19b6021a97f99466 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Tue, 17 Sep 2013 14:59:15 -0700 Subject: [PATCH] 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 --- src/osd/OSD.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 1cdc232b0640b..4d8a0b4d0d5b4 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; } } -- 2.39.5