From 218c4496fa89bdbe4d63bd0e08c98abb371f29a9 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Wed, 8 Aug 2001 00:11:18 +0000 Subject: [PATCH] merge bugfix from irix in handling of realtime files with unwritten extents (doesn't really affect linux yet). fix a typo in a diagnostic. --- repair/dinode.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) { -- 2.47.2