From: Christoph Hellwig Date: Mon, 14 Apr 2025 05:36:11 +0000 (+0200) Subject: xfs_repair: fix the RT device check in process_dinode_int X-Git-Tag: v6.15.0~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=049a4797a652e7edca6ddcf5009891603271fbe7;p=thirdparty%2Fxfsprogs-dev.git xfs_repair: fix the RT device check in process_dinode_int Don't look at the variable for the rtname command line option, but the actual file system geometry. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong --- diff --git a/repair/dinode.c b/repair/dinode.c index 7bdd3dcf..8ca0aa02 100644 --- a/repair/dinode.c +++ b/repair/dinode.c @@ -3265,8 +3265,8 @@ _("bad (negative) size %" PRId64 " on inode %" PRIu64 "\n"), flags &= XFS_DIFLAG_ANY; } - /* need an rt-dev for the realtime flag! */ - if ((flags & XFS_DIFLAG_REALTIME) && !rt_name) { + /* need an rt-dev for the realtime flag */ + if ((flags & XFS_DIFLAG_REALTIME) && !mp->m_sb.sb_rextents) { if (!uncertain) { do_warn( _("inode %" PRIu64 " has RT flag set but there is no RT device\n"),