]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Fix morebits bit check in xfs_repair, previously it would clear features2.
authorNathan Scott <nathans@sgi.com>
Thu, 29 Sep 2005 03:44:42 +0000 (03:44 +0000)
committerNathan Scott <nathans@sgi.com>
Thu, 29 Sep 2005 03:44:42 +0000 (03:44 +0000)
repair/agheader.c

index 07a4e1017f2a15aeb65a1ce8e03e80d8d681cb4d..ebeeb7f3a54ed2b43d59422bf328e2121ec6c01d 100644 (file)
@@ -259,7 +259,10 @@ secondary_sb_wack(xfs_mount_t *mp, xfs_buf_t *sbuf, xfs_sb_t *sb,
                 * work against older filesystems when the superblock
                 * gets rev'ed again with new fields appended.
                 */
-               if (XFS_SB_VERSION_HASLOGV2(sb))
+               if (XFS_SB_VERSION_HASMOREBITS(sb))
+                       size = (__psint_t)&sb->sb_features2
+                               + sizeof(sb->sb_features2) - (__psint_t)sb;
+               else if (XFS_SB_VERSION_HASLOGV2(sb))
                        size = (__psint_t)&sb->sb_logsunit
                                + sizeof(sb->sb_logsunit) - (__psint_t)sb;
                else if (XFS_SB_VERSION_HASSECTOR(sb))