From: Nathan Scott Date: Wed, 8 Aug 2001 00:11:18 +0000 (+0000) Subject: merge bugfix from irix in handling of realtime files with unwritten X-Git-Tag: v2.0.0~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=218c4496fa89bdbe4d63bd0e08c98abb371f29a9;p=thirdparty%2Fxfsprogs-dev.git merge bugfix from irix in handling of realtime files with unwritten extents (doesn't really affect linux yet). fix a typo in a diagnostic. --- diff --git a/repair/dinode.c b/repair/dinode.c index 724407d37..428f40595 100644 --- a/repair/dinode.c +++ b/repair/dinode.c @@ -612,8 +612,9 @@ process_bmbt_reclist_int( * XXX - verify that the blocks listed in the record * are multiples of an extent */ - if (s % mp->m_sb.sb_rextsize != 0 || - c % mp->m_sb.sb_rextsize != 0) { + if (XFS_SB_VERSION_HASEXTFLGBIT(&mp->m_sb) == 0 + && (s % mp->m_sb.sb_rextsize != 0 || + c % mp->m_sb.sb_rextsize != 0)) { do_warn( "malformed rt inode extent [%llu %llu] (fs rtext size = %u)\n", s, c, mp->m_sb.sb_rextsize); @@ -2023,7 +2024,7 @@ process_dinode_int(xfs_mount_t *mp, */ if (type != XR_INO_RTDATA && INT_GET(dinoc->di_extsize, ARCH_CONVERT) != 0) { do_warn( -"bad non-zero extent size value %u for non-realtime inode %llu,", +"bad non-zero extent size value %u for non-realtime inode %llu, ", INT_GET(dinoc->di_extsize, ARCH_CONVERT), lino); if (!no_modify) {