From dc4bbc37a1f2b8677f2f45cda6a06f9cf462895e Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Fri, 3 Jun 2016 10:34:26 +0800 Subject: btrfs-progs: convert-tests: Add test case for backup superblock migration New convert introduced simpler chunk/extent allocation algorithm, at the cost of complex backup superblock migration codes. Use specially built ext2 images to test if btrfs-convert can convert and rollback images without problem. All these special ext2 image have blocks/holes across 2nd btrfs backup superblock. The naming of test image is like the following: |<------superblock migration range----->| 64M 64M + 64K |-Data--|-Data--|/Hole//|-Data--|/Hole//|-Data--|--Data--| = drdhdhdrd These test cases should check all typical layouts and make sure new convert works. Signed-off-by: Qu Wenruo Signed-off-by: David Sterba --- .../hrhdhdrd.e2image.raw.xz | Bin 0 -> 84556 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/convert-tests/004-ext2-backup-superblock-ranges/hrhdhdrd.e2image.raw.xz (limited to 'tests/convert-tests/004-ext2-backup-superblock-ranges/hrhdhdrd.e2image.raw.xz') diff --git a/tests/convert-tests/004-ext2-backup-superblock-ranges/hrhdhdrd.e2image.raw.xz b/tests/convert-tests/004-ext2-backup-superblock-ranges/hrhdhdrd.e2image.raw.xz new file mode 100644 index 00000000..a1a30429 Binary files /dev/null and b/tests/convert-tests/004-ext2-backup-superblock-ranges/hrhdhdrd.e2image.raw.xz differ -- cgit v1.2.3