btrfs-progs/tests/fsck-tests/020-extent-ref-cases
Lu Fengqi 0155481cc9 btrfs-progs: fsck-tests: Introduce test case with keyed data backref with the extent offset
Add the testcase for false alert of data extent backref lost with the
extent offset.

The image can be reproduced by the following commands:
------
dev=~/test.img
mnt=/mnt/btrfs

umount $mnt &> /dev/null
fallocate -l 128M $dev

mkfs.btrfs $dev
mount $dev $mnt

for i in `seq 1 10`; do
	xfs_io -f -c "pwrite 0 2K" $mnt/file$i
done

xfs_io -f -c "falloc 0 64K" $mnt/file11

for i in `seq 1 32`; do
	xfs_io -f -c "reflink $mnt/file11 0 $(($i * 64))K 64K" $mnt/file11
done

xfs_io -f -c "reflink $mnt/file11 32K $((33 * 64))K 32K" $mnt/file11

btrfs subvolume snapshot $mnt $mnt/snap1

umount $mnt
btrfs-image -c9 $dev extent_data_ref.img
------

Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2018-03-30 22:15:53 +02:00
..
block_group_item_false_alert.raw.xz
extent_data_ref.img btrfs-progs: fsck-tests: Introduce test case with keyed data backref with the extent offset 2018-03-30 22:15:53 +02:00
inline_regular_coexist.img btrfs-progs: test: Add test image for lowmem mode file extent interrupt 2017-11-14 15:59:01 +01:00
keyed_block_ref.img
keyed_data_ref.img
keyed_data_ref_only.img btrfs-progs: fsck-test: Introduce test case for false data extent backref lost 2018-01-03 17:09:15 +01:00
keyed_data_ref_with_shared_leaf.img btrfs-progs: fsck-tests: Introduce test case with keyed data backref with shared tree blocks 2018-01-03 17:09:27 +01:00
no_inline_ref.img
no_skinny_ref.img
ref_count_mismatch_false_alert.img btrfs-progs: test: Add test image for lowmem mode referencer count mismatch false alert 2017-11-14 15:59:01 +01:00
shared_block_ref.img
shared_block_ref_only.raw.xz btrfs-progs: fsck-test: Add new image with shared block ref only metadata backref 2018-01-03 17:09:23 +01:00
shared_data_ref.img
shared_data_ref_only.img btrfs-progs: tests: Add SHARED_DATA_REF test image for check lowmem mode 2017-03-31 14:17:48 +02:00
test.sh btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00