path: root/tests
diff options
authorJosef Bacik <>2013-10-01 08:58:33 -0400
committerChris Mason <>2013-10-16 08:23:12 -0400
commit2454473dd1647e83d6eba9852eeb08d331e9ea9a (patch)
tree6d9dc046387d9118312f74ab4aced0a780a052c6 /tests
parentfd815de85937c8ef64adcee6596c0b7f6655c461 (diff)
Btrfs-progs: add a test image for the transid fixer in btrfsck
This is a verification test for the transid recow functionality of btrfsck. I've also adjusted the test script to spit out which image it's testing so I can be sure the image was getting tested. Thanks, Signed-off-by: Josef Bacik <> Signed-off-by: David Sterba <> Signed-off-by: Chris Mason <>
Diffstat (limited to 'tests')
-rw-r--r--tests/fsck-tests/002-bad-transid.imgbin0 -> 4096 bytes
2 files changed, 1 insertions, 0 deletions
diff --git a/tests/ b/tests/
index c1490bf3..25c390d0 100644
--- a/tests/
+++ b/tests/
@@ -17,6 +17,7 @@ rm -f fsck-tests-results.txt
for i in $(find $here/tests/fsck-tests -name '*.img')
+ echo " [TEST] $(basename $i)"
echo "testing image $i" >> fsck-tests-results.txt
$here/btrfs-image -r $i test.img >> fsck-tests-results.txt 2>&1 \
|| _fail "restore failed"
diff --git a/tests/fsck-tests/002-bad-transid.img b/tests/fsck-tests/002-bad-transid.img
new file mode 100644
index 00000000..85bd87cd
--- /dev/null
+++ b/tests/fsck-tests/002-bad-transid.img
Binary files differ