]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Fix botched cast in xfs_repair superblock size checks
authorNathan Scott <nathans@sgi.com>
Fri, 27 Jun 2003 00:50:25 +0000 (00:50 +0000)
committerNathan Scott <nathans@sgi.com>
Fri, 27 Jun 2003 00:50:25 +0000 (00:50 +0000)
doc/CHANGES
repair/sb.c

index ba6c1560bb0f8f2c7ecfeed6eeed907cf0bb7ac5..10076c954b8857be173cefd4295a7f6a07fe481e 100644 (file)
@@ -5,6 +5,7 @@ xfsprogs-2.5.2 (25 June 2003)
          for work-in-progress on xfs_repair and xfs_copy.
        - Fix missing initialisation of stripe unit/width alignment
          information during libxfs_mount.
+       - Fix botched repair typecast for multi-terabyte filesystems.
 
 xfsprogs-2.5.1 (23 June 2003)
        - Fix libdisk device driver (volume managers) detection code
index ef9e03526b0be9b4102b98c281ac23bb11f112bf..4924dc3f48cbefdef94f1186933a3984066a0a7f 100644 (file)
@@ -276,9 +276,9 @@ verify_sb(xfs_sb_t *sb, int is_primary_sb)
 
        if (sb->sb_dblocks == 0 ||
                sb->sb_dblocks >
-                       (__uint64_t)(sb->sb_agcount * sb->sb_agblocks) ||
+                       ((__uint64_t)sb->sb_agcount * sb->sb_agblocks) ||
                sb->sb_dblocks <
-                       (__uint64_t)((sb->sb_agcount - 1) * sb->sb_agblocks
+                       ((__uint64_t)(sb->sb_agcount - 1) * sb->sb_agblocks
                        + XFS_MIN_AG_BLOCKS))
                return(XR_BAD_FS_SIZE_DATA);