stress2: Handle different spelling of "superblock"

This commit is contained in:
Peter Holm 2022-08-19 11:39:28 +02:00
parent 3b7935f33b
commit 98b13e25fd

View File

@ -86,13 +86,13 @@ chk() {
waccess=0
fsck_ffs -fy $1 > $log 2>&1
r=$?
if grep -qE "Cannot find file system superblock|Superblock check-hash failed" $log; then
if grep -qiE "super-?block.*failed" $log; then
for b in $backups; do
echo "Using alternate SB $b"
asbs=$((asbs + 1))
fsck_ffs -b $b -fy $1 > $log 2>&1
r=$?
grep -qE "Cannot find file system superblock|Superblock check-hash failed" $log ||
grep -qiE "super-?block.*failed" $log ||
break
done
usedasb=1