]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs_repair: fix the RT device check in process_dinode_int
authorChristoph Hellwig <hch@lst.de>
Fri, 20 Dec 2024 03:49:38 +0000 (19:49 -0800)
committerChristoph Hellwig <hch@lst.de>
Tue, 8 Apr 2025 07:17:47 +0000 (09:17 +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>
repair/dinode.c

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