Message ID | 169567911508.2318286.1922354533616393640.stgit@frogsfrogsfrogs (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
Series | libxfs: sync with 6.6 | expand |
diff --git a/libxfs/xfs_sb.c b/libxfs/xfs_sb.c index 1e71d43d0a4..01935017cb6 100644 --- a/libxfs/xfs_sb.c +++ b/libxfs/xfs_sb.c @@ -264,7 +264,8 @@ xfs_validate_sb_write( return -EFSCORRUPTED; } - if (xfs_sb_has_ro_compat_feature(sbp, XFS_SB_FEAT_RO_COMPAT_UNKNOWN)) { + if (!xfs_is_readonly(mp) && + xfs_sb_has_ro_compat_feature(sbp, XFS_SB_FEAT_RO_COMPAT_UNKNOWN)) { xfs_alert(mp, "Corruption detected in superblock read-only compatible features (0x%x)!", (sbp->sb_features_ro_compat &