updates for supporting blocksizes smaller than the pagesize.

This commit is contained in:
fsgqa
2002-05-09 07:24:12 +00:00
parent eb10a2bcd8
commit 79e28ebae8
6 changed files with 36 additions and 7 deletions
+9 -4
View File
@@ -52,6 +52,7 @@ status=0 # success is the default!
_cleanup()
{
rm -f $tmp.*
echo "*** unmount"
umount $SCRATCH_MNT 2>/dev/null
}
@@ -98,7 +99,6 @@ _filter_logprint()
s/1st: *[0-9][0-9]* *last: *[0-9][0-9]* *cnt: *[0-9][0-9]* *freeblks: *[0-9][0-9]* *longest: *[0-9][0-9]*/1st:<NUM> last:<NUM> cnt:<COUNT> freeblks:<COUNT> longest:<NUM>/;
s/^uuid: *[0-9a-f-][0-9a-f-]* *format: *.*$/uuid: <UUID> format: <FORMAT>/;
'
}
_check_log()
@@ -118,12 +118,17 @@ _require_scratch
echo "*** init FS"
rm -f $seq.out $seq.full
touch $seq.out
umount $SCRATCH_DEV >/dev/null 2>&1
_full "mkfs"
mkfs_xfs -lsize=2000b $SCRATCH_DEV >>$seq.full 2>&1 \
|| _fail "mkfs failed"
mkfs_xfs -lsize=2000b $SCRATCH_DEV | _filter_mkfs 2>$tmp.mkfs
source $tmp.mkfs
[ $dbsize -eq 4096 ] \
|| _notrun "Log print test tailored to 4K blocks (currently using $dbsize)"
rm -f $seq.out $seq.full
_full " mount"
mount -t xfs $SCRATCH_DEV $SCRATCH_MNT >>$seq.full 2>&1 \
|| _fail "mount failed"
+6
View File
@@ -1,5 +1,11 @@
QA output created by 018
*** init FS
meta-data=DDEV isize=XXX agcount=N, agsize=XXX blks
data = bsize=XXX blocks=XXX, imaxpct=PCT
= sunit=XXX swidth=XXX, unwritten=X
naming =VERN bsize=XXX
log =LDEV bsize=XXX blocks=XXX
realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX
### xfs_logprint output ###
xfs_logprint:
data device: <DEVICE>
+6
View File
@@ -1,5 +1,11 @@
QA output created by 018
*** init FS
meta-data=DDEV isize=XXX agcount=N, agsize=XXX blks
data = bsize=XXX blocks=XXX, imaxpct=PCT
= sunit=XXX swidth=XXX, unwritten=X
naming =VERN bsize=XXX
log =LDEV bsize=XXX blocks=XXX
realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX
### xfs_logprint output ###
xfs_logprint:
data device: <DEVICE>
+6
View File
@@ -1,5 +1,11 @@
QA output created by 018
*** init FS
meta-data=DDEV isize=XXX agcount=N, agsize=XXX blks
data = bsize=XXX blocks=XXX, imaxpct=PCT
= sunit=XXX swidth=XXX, unwritten=X
naming =VERN bsize=XXX
log =LDEV bsize=XXX blocks=XXX
realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX
### xfs_logprint output ###
xfs_logprint:
data device: <DEVICE>
+6
View File
@@ -1,5 +1,11 @@
QA output created by 018
*** init FS
meta-data=DDEV isize=XXX agcount=N, agsize=XXX blks
data = bsize=XXX blocks=XXX, imaxpct=PCT
= sunit=XXX swidth=XXX, unwritten=X
naming =VERN bsize=XXX
log =LDEV bsize=XXX blocks=XXX
realtime =RDEV extsz=XXX blocks=XXX, rtextents=XXX
### xfs_logprint output ###
xfs_logprint:
data device: <DEVICE>
+2 -2
View File
@@ -158,7 +158,7 @@ timestamp=false
if [ ! -z "$MKFS_OPTIONS" ]
then
echo "check: \$MKFS_OPTIONS specified - \"$MKFS_OPTIONS\""
echo "check: \$MKFS_OPTIONS specified -- \"$MKFS_OPTIONS\""
umount $SCRATCH_DEV 2>/dev/null
# call the overridden mkfs.xfs - make sure the FS is built
# the same as we'll create it later.
@@ -173,7 +173,7 @@ fi
if [ ! -z "$MOUNT_OPTIONS" ]
then
echo "check: \$MOUNT_OPTIONS specified - \"$MOUNT_OPTIONS\""
echo "check: \$MOUNT_OPTIONS specified -- \"$MOUNT_OPTIONS\""
umount $TEST_DEV
# call the overridden mount - make sure the FS starts as
# the same as we'll set it later.