btrfs-progs: convert-tests: Add test case for backup superblock migration
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Fri, 3 Jun 2016 02:34:26 +0000 (10:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 3 Jun 2016 14:53:25 +0000 (16:53 +0200)
commitdc4bbc37a1f2b8677f2f45cda6a06f9cf462895e
treef45e18d375211246d7ce51ab45a090aa1bccfbc5
parentfde5ae2e49a9cd7091fb8db8d748d7687a544d23
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 <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
tests/convert-tests/004-ext2-backup-superblock-ranges/drdhdhdrd.e2image.raw.xz [new file with mode: 0644]
tests/convert-tests/004-ext2-backup-superblock-ranges/drdhdhrh.e2image.raw.xz [new file with mode: 0644]
tests/convert-tests/004-ext2-backup-superblock-ranges/hrhdhdrd.e2image.raw.xz [new file with mode: 0644]
tests/convert-tests/004-ext2-backup-superblock-ranges/hrhdhrh.e2image.raw.xz [new file with mode: 0644]
tests/convert-tests/004-ext2-backup-superblock-ranges/test.sh [new file with mode: 0755]