diff --git a/tests/fsck-tests/061-out-of-order-inline-backref/btrfs_image.img.xz b/tests/fsck-tests/061-out-of-order-inline-backref/btrfs_image.img.xz new file mode 100644 index 00000000..65c10617 Binary files /dev/null and b/tests/fsck-tests/061-out-of-order-inline-backref/btrfs_image.img.xz differ diff --git a/tests/fsck-tests/061-out-of-order-inline-backref/test.sh b/tests/fsck-tests/061-out-of-order-inline-backref/test.sh new file mode 100755 index 00000000..f80d58f4 --- /dev/null +++ b/tests/fsck-tests/061-out-of-order-inline-backref/test.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# +# Verify that check can detect out-of-order inline backref items. +# +# There is a report that one ntfs2btrfs generated some out-of-order inline +# backref items, while btrfs-check failed to detect it at all. +# +# Make sure btrfs check can at least detect such error. + +source "$TEST_TOP/common" + +check_prereq btrfs + +check_image() { + run_mustfail "out-of-order inline backref items not detected" \ + "$TOP/btrfs" check "$1" +} + +check_all_images