feat: add --no-bdr-defect-management to produce bigger augmented images with RS03

This commit is contained in:
Stéphane Lesimple
2020-08-30 13:26:22 +02:00
parent c0c6747bd9
commit 2d68cfb0b1
56 changed files with 1040 additions and 786 deletions

View File

@@ -136,10 +136,16 @@ function try()
REGTEST_SECTION="Test"
fi
echo -n "[ ] ${CODEC_PREFIX} - ${REGTEST_SECTION} - $1 - "
if [ "$REGTEST_NO_UTF8" != 1 ]; then
echo -n "[ ] "
fi
echo -n "${CODEC_PREFIX} - ${REGTEST_SECTION} - $1 - "
return 0
else
echo "[-] ${CODEC_PREFIX} - ${REGTEST_SECTION} - $1 - SKIPPED ($doit, ${CODEC_PREFIX}_$2)"
if [ "$REGTEST_NO_UTF8" != 1 ]; then
echo -n "[-] "
fi
echo "${CODEC_PREFIX} - ${REGTEST_SECTION} - $1 - SKIPPED ($doit, ${CODEC_PREFIX}_$2)"
return 1
fi
}
@@ -222,7 +228,11 @@ function run_regtest()
fi
if ! diff <(tail -n +3 $REFLOG | $filter) <(sed -re "s=${SED_REMOVE_ISO_DIR}==g" $NEWLOG | $filter) >${DIFFLOG}; then
printf "%b\r%b\n" "BAD; diffs found (<expected; >created):" "[\e[31m✘\e[0m]"
if [ "$REGTEST_NO_UTF8" = 1 ]; then
echo "BAD; diffs found (<expected; >created):"
else
printf "%b\r%b\n" "BAD; diffs found (<expected; >created):" "[\e[31m✘\e[0m]"
fi
cat ${DIFFLOG}
if test "$interactive_diff" == "yes"; then
@@ -265,8 +275,11 @@ function run_regtest()
if test ${image_md5} != "ignore"; then
md5=$($MD5SUM ${testiso} | cut -d\ -f 1)
if test "$image_md5" != "$md5"; then
echo "BAD; md5 sum mismatch in image file:"
printf "%b\r%b\n" "BAD; md5 sum mismatch in image file:" "[\e[31m✘\e[0m]"
if [ "$REGTEST_NO_UTF8" = 1 ]; then
echo "BAD; md5 sum mismatch in image file:"
else
printf "%b\r%b\n" "BAD; md5 sum mismatch in image file:" "[\e[31m✘\e[0m]"
fi
echo "... expected image: $image_md5"
echo "... generated image: $md5"
pass="false"
@@ -276,7 +289,7 @@ function run_regtest()
if test ${ecc_md5} != "ignore"; then
md5=$($MD5SUM ${testecc} | cut -d\ -f 1)
if test "$ecc_md5" != "$md5"; then
if [ "$pass" = false ]; then
if [ "$pass" = false ] || [ "$REGTEST_NO_UTF8" = 1 ]; then
echo "BAD; md5 sum mismatch in ecc file:"
else
printf "%b\r%b\n" "BAD; md5 sum mismatch in ecc file:" "[\e[31m✘\e[0m]"
@@ -289,7 +302,11 @@ function run_regtest()
case "${pass}" in
true)
printf "%b\r%b\n" "GOOD" "[\e[32m✓\e[0m]"
if [ "$REGTEST_NO_UTF8" = 1 ]; then
echo GOOD
else
printf "%b\r%b\n" "GOOD" "[\e[32m✓\e[0m]"
fi
;;
skip)

View File

@@ -8,7 +8,7 @@ See the file "COPYING" for further information.
Opening rs02-tmp.iso: 30000 medium sectors.
Augmenting image with Method RS02:
58 MiB data, 9 MiB ecc (35 roots; 15.9% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 68 MiB (34932 sectors).

View File

@@ -16,7 +16,7 @@ Completing image rs02-tmp.iso. Only missing sectors will be read.
Opening rs02-tmp.iso: 30000 medium sectors.
Augmenting image with Method RS02:
58 MiB data, 9 MiB ecc (35 roots; 15.9% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 68 MiB (34932 sectors).

View File

@@ -16,7 +16,7 @@ All sectors successfully read.
Opening rs02-tmp.iso: 30000 medium sectors.
Augmenting image with Method RS02:
58 MiB data, 9 MiB ecc (35 roots; 15.9% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 68 MiB (34932 sectors).

View File

@@ -11,7 +11,7 @@ Opening rs02-tmp.iso: 39809 medium sectors.
Image size is now: 30000 medium sectors.
Augmenting image with Method RS02:
58 MiB data, 9 MiB ecc (35 roots; 15.9% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 68 MiB (34932 sectors).

View File

@@ -11,7 +11,7 @@ Opening rs02-tmp.iso: 39810 medium sectors.
Image size is now: 30000 medium sectors and 56 bytes.
Augmenting image with Method RS02:
58 MiB data, 9 MiB ecc (35 roots; 15.9% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 68 MiB (34933 sectors).

View File

@@ -11,7 +11,7 @@ Opening rs02-tmp.iso: 34932 medium sectors.
Image size is now: 30000 medium sectors.
Augmenting image with Method RS02:
58 MiB data, 9 MiB ecc (35 roots; 15.9% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 68 MiB (34932 sectors).

View File

@@ -11,7 +11,7 @@ Opening rs02-tmp.iso: 34933 medium sectors.
Image size is now: 30000 medium sectors and 56 bytes.
Augmenting image with Method RS02:
58 MiB data, 9 MiB ecc (35 roots; 15.9% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 68 MiB (34933 sectors).

View File

@@ -11,7 +11,7 @@ Opening rs02-tmp.iso: 34935 medium sectors.
Image size is now: 30000 medium sectors.
Augmenting image with Method RS02:
58 MiB data, 9 MiB ecc (35 roots; 15.9% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 68 MiB (34932 sectors).

View File

@@ -11,7 +11,7 @@ Opening rs02-tmp.iso: 34935 medium sectors.
Image size is now: 30000 medium sectors and 137 bytes.
Augmenting image with Method RS02:
58 MiB data, 9 MiB ecc (35 roots; 15.9% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 68 MiB (34933 sectors).

View File

@@ -8,7 +8,7 @@ See the file "COPYING" for further information.
Opening rs02-tmp.iso: 30000 medium sectors.
Augmenting image with Method RS02:
58 MiB data, 9 MiB ecc (35 roots; 15.9% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
*

View File

@@ -8,7 +8,7 @@ See the file "COPYING" for further information.
Opening rs02-tmp.iso: 30000 medium sectors and 137 bytes.
Augmenting image with Method RS02:
58 MiB data, 9 MiB ecc (35 roots; 15.9% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 68 MiB (34933 sectors).

View File

@@ -17,7 +17,7 @@ All sectors successfully read. Checksums match.
Opening rs02-tmp.iso: 30000 medium sectors.
Augmenting image with Method RS02:
58 MiB data, 9 MiB ecc (35 roots; 15.9% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 68 MiB (34932 sectors).

View File

@@ -20,7 +20,7 @@ Opening rs02-tmp.iso: 49935 medium sectors.
Image size is now: 30000 medium sectors.
Augmenting image with Method RS02:
58 MiB data, 9 MiB ecc (35 roots; 15.9% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 68 MiB (34932 sectors).

View File

@@ -17,7 +17,7 @@ All sectors successfully read. Checksums match.
Opening rs02-tmp.iso: 30000 medium sectors.
Augmenting image with Method RS02:
58 MiB data, 9 MiB ecc (35 roots; 15.9% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 68 MiB (34932 sectors).

View File

@@ -20,7 +20,7 @@ Opening rs02-tmp.iso: 36975 medium sectors.
Image size is now: 30000 medium sectors.
Augmenting image with Method RS02:
58 MiB data, 9 MiB ecc (35 roots; 15.9% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 68 MiB (34932 sectors).

View File

@@ -7,7 +7,7 @@ See the file "COPYING" for further information.
Opening rs03i-tmp.iso: 21000 medium sectors.
41 MiB data, 7 MiB ecc (39 roots; 18.1% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 48 MiB (24990 sectors).

View File

@@ -249,7 +249,7 @@ ndata = 216
nroots = 39 (18.1%)
41 MiB data, 7 MiB ecc (39 roots; 18.1% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
CrcBufValid: NOT complete
Cache allocation: 110592K+12288K+9984K=129M (data+parity+descrambling)

View File

@@ -250,7 +250,7 @@ ndata = 216
nroots = 39 (18.1%)
41 MiB data, 7 MiB ecc (39 roots; 18.1% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
CrcBufValid: buffer VALID
CrcBuf present, augmented image: using data MD5 sum

View File

@@ -10,7 +10,7 @@ Opening rs03i-tmp.iso: 29835 medium sectors.
* Truncating image to data part (21000 sectors).
Image size is now: 21000 medium sectors.
41 MiB data, 7 MiB ecc (39 roots; 18.1% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 48 MiB (24990 sectors).

View File

@@ -10,7 +10,7 @@ Opening rs03i-tmp.iso: 29835 medium sectors.
* Truncating image to data part (21001 sectors).
Image size is now: 21000 medium sectors and 56 bytes.
41 MiB data, 7 MiB ecc (39 roots; 18.1% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 48 MiB (24990 sectors).

View File

@@ -10,7 +10,7 @@ Opening rs03i-tmp.iso: 29887 medium sectors.
* Truncating image to data part (21000 sectors).
Image size is now: 21000 medium sectors.
41 MiB data, 7 MiB ecc (39 roots; 18.1% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 48 MiB (24990 sectors).

View File

@@ -10,7 +10,7 @@ Opening rs03i-tmp.iso: 24927 medium sectors.
* Truncating image to data part (21001 sectors).
Image size is now: 21000 medium sectors and 56 bytes.
41 MiB data, 7 MiB ecc (39 roots; 18.1% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 48 MiB (24990 sectors).

View File

@@ -10,7 +10,7 @@ Opening rs03i-tmp.iso: 24990 medium sectors.
* Truncating image to data part (21000 sectors).
Image size is now: 21000 medium sectors.
41 MiB data, 7 MiB ecc (39 roots; 18.1% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 48 MiB (24990 sectors).

View File

@@ -10,7 +10,7 @@ Opening rs03i-tmp.iso: 24990 medium sectors.
* Truncating image to data part (21001 sectors).
Image size is now: 21000 medium sectors and 56 bytes.
41 MiB data, 7 MiB ecc (39 roots; 18.1% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 48 MiB (24990 sectors).

View File

@@ -7,7 +7,7 @@ See the file "COPYING" for further information.
Opening rs03i-tmp.iso: 21000 medium sectors.
41 MiB data, 7 MiB ecc (39 roots; 18.1% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
*

View File

@@ -7,7 +7,7 @@ See the file "COPYING" for further information.
Opening rs03i-tmp.iso: 21000 medium sectors and 56 bytes.
41 MiB data, 7 MiB ecc (39 roots; 18.1% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
Image has been augmented with error correction data.
New image size is 48 MiB (24990 sectors).

View File

@@ -252,7 +252,7 @@ ndata = 216
nroots = 39 (18.1%)
41 MiB data, 7 MiB ecc (39 roots; 18.1% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
CrcBufValid: buffer VALID
CrcBuf present, augmented image: using data MD5 sum

View File

@@ -209,7 +209,7 @@ ndata = 216
nroots = 39 (18.1%)
41 MiB data, 7 MiB ecc (39 roots; 18.1% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
CrcBufValid: buffer VALID
CrcBuf present, augmented image: using data MD5 sum

View File

@@ -266,7 +266,7 @@ ndata = 216
nroots = 39 (18.1%)
41 MiB data, 7 MiB ecc (39 roots; 18.1% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
CrcBufValid: buffer VALID
CrcBuf present, augmented image: using data MD5 sum

View File

@@ -263,7 +263,7 @@ ndata = 216
nroots = 39 (18.1%)
41 MiB data, 7 MiB ecc (39 roots; 18.1% redundancy).
* Warning: Using redundancies below 20%% may not give
* Warning: Using redundancies below 20% may not give
* the expected data loss protection.
CrcBufValid: buffer VALID
CrcBuf present, augmented image: using data MD5 sum

View File

@@ -1479,7 +1479,7 @@ fi
REGTEST_SECTION="Reading tests (adaptive)"
echo "Currently not enabled!"
exit 0
exit $nbfailed
# Read good image with error correction data available

View File

@@ -1776,7 +1776,7 @@ fi
REGTEST_SECTION="Reading tests (adaptive)"
echo "Currently not enabled!"
exit 0
exit $nbfailed
# Read complete / optimal image

View File

@@ -2,7 +2,7 @@
cd "$(dirname "$0")"
allfailed=0
for i in rs*.bash; do
( DVDISASTER_SCSI_SIMULATED_NODELAY=1 ./$i ); ret=$?
( DVDISASTER_SCSI_SIMULATED_NODELAY=1 REGTEST_NO_UTF8=1 ./$i ); ret=$?
allfailed=$((allfailed + ret))
done
echo Failed $allfailed tests