Blame SOURCES/xfsprogs-4.15.0-xfs_copy-accept-CRC-version-of-ABTB_MAGIC-in-ASSERT.patch

68d504
From d0ca5d8a3875a423b522ee9767cbeb3d47bed420 Mon Sep 17 00:00:00 2001
68d504
From: Eric Sandeen <sandeen@redhat.com>
68d504
Date: Thu, 25 Jan 2018 13:55:01 -0600
68d504
Subject: [PATCH] xfs_copy: accept CRC version of ABTB_MAGIC in ASSERT
68d504
68d504
Not sure how this was missed for so long, but to handle CRC
68d504
filesystems, this ASSERT on block magic must accept CRC magic
68d504
as well.
68d504
68d504
Reported-by: Radek Burkat <radek@pinkbike.com>
68d504
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
68d504
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
68d504
Reviewed-by: Bill O'Donnell <billodo@redhat.com>
68d504
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
68d504
---
68d504
 copy/xfs_copy.c | 3 ++-
68d504
 1 file changed, 2 insertions(+), 1 deletion(-)
68d504
68d504
diff --git a/copy/xfs_copy.c b/copy/xfs_copy.c
68d504
index fb37375..16ee4d9 100644
68d504
--- a/copy/xfs_copy.c
68d504
+++ b/copy/xfs_copy.c
68d504
@@ -1140,7 +1140,8 @@ main(int argc, char **argv)
68d504
 				 ((char *) btree_buf.data +
68d504
 				  pos - btree_buf.position);
68d504
 
68d504
-			ASSERT(be32_to_cpu(block->bb_magic) == XFS_ABTB_MAGIC);
68d504
+			ASSERT(be32_to_cpu(block->bb_magic) == XFS_ABTB_MAGIC ||
68d504
+			       be32_to_cpu(block->bb_magic) == XFS_ABTB_CRC_MAGIC);
68d504
 		}
68d504
 
68d504
 		/*
68d504
-- 
68d504
2.9.5
68d504