Skip to contentSkip to conversation

Btrfs-progs: add a test image for the transid fixer in btrfsck

PATCH New Josef Bacik 1 participant 1 message Oct 1, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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,

---
 tests/fsck-tests.sh                  |   1 +
 tests/fsck-tests/002-bad-transid.img | Bin 0 -> 4096 bytes
 2 files changed, 1 insertion(+)
 create mode 100644 tests/fsck-tests/002-bad-transid.img
tests/fsck-tests.sh +1 -0
index c1490bf..25c390d 100644
@@ -17,6 +17,7 @@ rm -f fsck-tests-results.txt
 
 for i in $(find $here/tests/fsck-tests -name '*.img')
 do
+	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"
tests/fsck-tests/002-bad-transid.img new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..85bd87cd625e4c25c40fa9db423525f7af6c23a9
GIT binary patch
Signature · 1 line
1.8.3.1