Skip to contentSkip to conversation

xfs_repair: inode flags check should use flags

PATCH In review Dave Chinner 2 participants 3 messages Feb 23, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs_repair: inode flags check should use flags

From: Dave Chinner <[email protected]>

The RT bitmap inode format flag check should use the flag, not the bit definition. As a result, it is incorrectly detecting inodes with the prealloc flag set as has having an invalid bit set.

---
 repair/dinode.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
repair/dinode.c +2 -2
index fad15b2..3a092e4 100644
@@ -2551,11 +2551,11 @@ process_dinode_int(xfs_mount_t *mp,
 						XFS_DIFLAG_RTINHERIT);
 			}
 		}
-		if (flags & XFS_DIFLAG_NEWRTBM_BIT) {
+		if (flags & XFS_DIFLAG_NEWRTBM) {
 			/* must be a rt bitmap inode */
 			if (lino != mp->m_sb.sb_rbmino) {
 				do_warn(_("inode %llu not rt bitmap"), lino);
-				flags &= ~XFS_DIFLAG_NEWRTBM_BIT;
+				flags &= ~XFS_DIFLAG_NEWRTBM;
 			}
 		}
 		if (flags & (XFS_DIFLAG_RTINHERIT |
Signature · 6 lines
1.7.2.3

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Dave Chinner

From: Dave Chinner <[email protected]>

The RT bitmap inode format flag check should use the flag, not the bit definition. As a result, it is incorrectly detecting inodes with the prealloc flag set as has having an invalid bit set.

Looks good.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#2 lore raw
Quoted 7 lines · Alex Elder
Quoted 6 lines · Dave Chinner

From: Dave Chinner <[email protected]>

The RT bitmap inode format flag check should use the flag, not the bit definition. As a result, it is incorrectly detecting inodes with the prealloc flag set as has having an invalid bit set.

Quoted 5 lines
Quoted 1 line

Looks good.

pushed.

Cheers,

Dave.

Signature · 7 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs