Open GoogleCodeExporter opened 9 years ago
Hm, there are some restrictions but it should follow kernel component.
If you have randomized testing script, could you provide it as well?
Original comment by gmazyl...@gmail.com
on 22 Dec 2014 at 1:37
sorry, I just noticed a slight problem in the test code above, it should be
count=0 otherwise the file size will not be a multiple of 4K as intended. it
doesn't work either way, though. here is the randomized test script. this one
does not fail whether count=0 or count=1. so the problem only manifests for
large file sizes.
while [ 1 ]
do
SIZE=$(( (RANDOM*4096) ))
rm -f ./test ./vert
dd if=/dev/zero of=test bs=1 seek="$SIZE" count=0
veritysetup format test vert | tee ./stdo
HASH="cat ./stdo | egrep '^Root hash:' | egrep -o '[0-9a-f]{64}'`"
veritysetup verify test vert "$HASH"
done
Original comment by zerosu...@gmail.com
on 22 Dec 2014 at 9:14
Original issue reported on code.google.com by
zerosu...@gmail.com
on 22 Dec 2014 at 1:23