3c35adb2f7
The test case verifies behavior of ext4 unwritten extents: - Create a unwritten (preallocated) extent on ext4 - Fill the on-disk extent with random garbage This is to make sure if btrfs tries to read the on-disk data, it would definitely get some garbage. As I found sometimes mkfs.ext4 can fill the unused bg with zeros. - Fill the preallocated file range with some data This is to make sure btrfs-convert can handle mixed written and unwritten ranges. - Save the checksum of the file. - Convert the fs - Verify the checksum For older btrfs-convert, there would be only one regular file extent, and reading the file would read out some garbage and cause checksum to mismatch. For the fixed btrfs-convert, we punch holes for unwritten extents, thus only the written part would be read out and match the checksum. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> |
||
---|---|---|
.. | ||
001-ext2-basic | ||
003-ext4-basic | ||
004-ext2-backup-superblock-ranges | ||
005-delete-all-rollback | ||
006-large-hole-extent | ||
007-unsupported-block-sizes | ||
008-readonly-image | ||
009-common-inode-flags | ||
010-reiserfs-basic | ||
011-reiserfs-delete-all-rollback | ||
012-reiserfs-large-hole-extent | ||
013-reiserfs-common-inode-flags | ||
014-reiserfs-tail-handling | ||
015-no-rollback-after-balance | ||
016-invalid-large-inline-extent | ||
017-fs-near-full | ||
018-fs-size-overflow | ||
019-ext4-copy-timestamps | ||
020-refuse-needs-recovery | ||
021-uuid-fsid | ||
022-reiserfs-parent-ref | ||
023-64k-blocksize-migrated | ||
024-ntfs-basic | ||
025-ext4-uninit-written |