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 <jbacik@fusionio.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
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"