]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
repair: use sb_meta_uuid for checking of metadata headers
authorDave Chinner <dchinner@redhat.com>
Mon, 3 Aug 2015 22:36:44 +0000 (08:36 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 3 Aug 2015 22:36:44 +0000 (08:36 +1000)
Now that we can change the uuid on v5 filesystems, we always need to
verify the metadata uuid against sb_meta_uuid, not sb_uuid. This
fixes quite a few xfstests failures when UUIDs are changed before
executing tests.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/phase6.c
repair/scan.c

index 09da2e22a12358b731476533bc207c8db313b887..ad9be3804b19e2efbc5129d89db2e6efb6fd5961 100644 (file)
@@ -1960,7 +1960,7 @@ _("expected block %" PRIu64 ", got %llu, directory inode %" PRIu64 "\n"),
                return 1;
        }
        /* verify uuid */
-       if (platform_uuid_compare(uuid, &mp->m_sb.sb_uuid) != 0) {
+       if (platform_uuid_compare(uuid, &mp->m_sb.sb_meta_uuid) != 0) {
                do_warn(
 _("wrong FS UUID, directory inode %" PRIu64 " block %" PRIu64 "\n"),
                        ino, bp->b_bn);
index 8711b94ce3bd3dcf5da2c701195d9fd52b82ad3c..95b8ade2cf82dc0105c677ea4fddaca9501b7cf7 100644 (file)
@@ -237,7 +237,7 @@ _("expected block %" PRIu64 ", got %llu, bmbt block %" PRIu64 "\n"),
                }
                /* verify uuid */
                if (platform_uuid_compare(&block->bb_u.l.bb_uuid,
-                                         &mp->m_sb.sb_uuid) != 0) {
+                                         &mp->m_sb.sb_meta_uuid) != 0) {
                        do_warn(
 _("wrong FS UUID, bmbt block %" PRIu64 "\n"),
                                bno);