Work to get QA to run successfully on filesystems with non-default inode sizes.

This commit is contained in:
fsgqa
2002-12-19 01:46:51 +00:00
parent 72d83fb5d8
commit c7acd6c38e
4 changed files with 16 additions and 9 deletions
+2
View File
@@ -126,6 +126,8 @@ mkfs_xfs -lsize=2000b $SCRATCH_DEV | _filter_mkfs 2>$tmp.mkfs
source $tmp.mkfs
[ $dbsize -eq 4096 ] \
|| _notrun "Logprint test, tailored to 4K blocks ($dbsize in use)"
[ $isize -eq 256 ] \
|| _notrun "Logprint test, tailored to 256b inodes ($isize in use)"
[ $lversion -eq 1 ] \
|| _notrun "Logprint test, tailored to v1 log format (v$lversion in use)"
+6 -2
View File
@@ -74,8 +74,12 @@ _check_root_inos()
# real QA test starts here
_require_scratch
# devzero blows away 512byte blocks, so make 512byte inodes
mkfs_xfs -isize=512 $SCRATCH_DEV | _filter_mkfs 2>/dev/null
# devzero blows away 512byte blocks, so make 512byte inodes (at least)
mkfs_xfs $SCRATCH_DEV | _filter_mkfs 2>$tmp.mkfs
source $tmp.mkfs
[ $isize -lt 512 ] && \
mkfs_xfs -isize=512 $SCRATCH_DEV | _filter_mkfs 2>/dev/null
`xfs_db -r -c sb -c p $SCRATCH_DEV | grep 'ino = ' | \
sed -e 's/ //g' -e 's/^/export /'`
+6 -6
View File
@@ -6,7 +6,7 @@ naming =VERN bsize=XXX
log =LDEV bsize=XXX blocks=XXX
realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX
Corrupting root inode - setting bits to 0
Wrote 0.50Kb (value 0x0)
Wrote X.XXKb (value 0x0)
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
@@ -42,7 +42,7 @@ Phase 7 - verify and correct link counts...
resetting inode INO nlinks from 2 to 3
done
Corrupting rt bitmap inode - setting bits to 0
Wrote 0.50Kb (value 0x0)
Wrote X.XXKb (value 0x0)
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
@@ -78,7 +78,7 @@ reinitializing realtime bitmap inode
Phase 7 - verify and correct link counts...
done
Corrupting rt summary inode - setting bits to 0
Wrote 0.50Kb (value 0x0)
Wrote X.XXKb (value 0x0)
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
@@ -114,7 +114,7 @@ reinitializing realtime summary inode
Phase 7 - verify and correct link counts...
done
Corrupting root inode - setting bits to -1
Wrote 0.50Kb (value 0xffffffff)
Wrote X.XXKb (value 0xffffffff)
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
@@ -152,7 +152,7 @@ Phase 7 - verify and correct link counts...
resetting inode INO nlinks from 2 to 3
done
Corrupting rt bitmap inode - setting bits to -1
Wrote 0.50Kb (value 0xffffffff)
Wrote X.XXKb (value 0xffffffff)
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
@@ -190,7 +190,7 @@ disconnected dir inode INO, moving to lost+found
Phase 7 - verify and correct link counts...
done
Corrupting rt summary inode - setting bits to -1
Wrote 0.50Kb (value 0xffffffff)
Wrote X.XXKb (value 0xffffffff)
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
+2 -1
View File
@@ -49,7 +49,8 @@ _zero_position()
exit
fi
length=`expr $length / 512`
src/devzero -v $value -b 1 -n $length -o $offset $SCRATCH_DEV
src/devzero -v $value -b 1 -n $length -o $offset $SCRATCH_DEV \
| perl -npe 's/\d\.\d\dKb/X.XXKb/g'
}
_filter_repair()