path: root/tests
diff options
authorLu Fengqi <>2018-02-28 18:13:23 +0800
committerDavid Sterba <>2018-03-30 22:15:53 +0200
commit0155481cc91285c75992603dfa6204a4fb6b698d (patch)
treeebe67f263e5e2388a2ddbc160b631e8de736810e /tests
parent905b3d18ae118931839b0a1ece17870073b51484 (diff)
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 <> Signed-off-by: David Sterba <>
Diffstat (limited to 'tests')
-rw-r--r--tests/fsck-tests/020-extent-ref-cases/extent_data_ref.imgbin0 -> 6144 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/fsck-tests/020-extent-ref-cases/extent_data_ref.img b/tests/fsck-tests/020-extent-ref-cases/extent_data_ref.img
new file mode 100644
index 00000000..3ab2396b
--- /dev/null
+++ b/tests/fsck-tests/020-extent-ref-cases/extent_data_ref.img
Binary files differ