]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_repair: fix the RT device check in process_dinode_int
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Apr 2025 05:36:11 +0000 (07:36 +0200)
committerAndrey Albershteyn <aalbersh@kernel.org>
Tue, 29 Apr 2025 16:09:57 +0000 (18:09 +0200)
Don't look at the variable for the rtname command line option, but
the actual file system geometry.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
repair/dinode.c

index 7bdd3dcf15c13b785d2caa7ce5a5e7064d079066..8ca0aa0238c7c8c2bc1fc974ede10eea7f4a24ac 100644 (file)
@@ -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"),