From bf37ba8df70181c6dd6602c3c54b57159de29586 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Thu, 19 Dec 2024 19:49:38 -0800 Subject: [PATCH] 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 --- repair/dinode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/repair/dinode.c b/repair/dinode.c index 7bdd3dcf1..0c559c408 100644 --- a/repair/dinode.c +++ b/repair/dinode.c @@ -3265,8 +3265,9 @@ _("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_rtdev_targp) { if (!uncertain) { do_warn( _("inode %" PRIu64 " has RT flag set but there is no RT device\n"), -- 2.50.1