changes for supporting the version 2 log format.

This commit is contained in:
Nathan Scott
2002-09-01 11:11:13 +00:00
parent 7427a5a70e
commit 42e823a997
4 changed files with 6 additions and 3 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)"
[ $lversion -eq 1 ] \
|| _notrun "Logprint test, tailored to version 1 log format"
rm -f $seq.out $seq.full
+1
View File
@@ -68,6 +68,7 @@ _filter_logprint()
s/log file: "([\w|\/.-]+)" daddr: (\d+) length: (\d+)/log device: LDEV daddr: XXX length: XXX/;
s/skipped (\w+) zeroed blocks/skipped XXX zeroed blocks/;
s/^uuid: *[0-9a-f-][0-9a-f-]* *format: *.*$/uuid: <UUID> format: <FORMAT>/;
s/version: \d/version: <VERN>/;
print;
'
}
+1 -1
View File
@@ -11,7 +11,7 @@ xfs_logprint:
data device: DDEV
log device: LDEV daddr: XXX length: XXX
cycle: 1 version: 1 lsn: 1,0 tail_lsn: 1,0
cycle: 1 version: <VERN> lsn: 1,0 tail_lsn: 1,0
length of Log Record: 20 prev offset: -1 num ops: 1
uuid: <UUID> format: <FORMAT>
----------------------------------------------------------------------------
+2 -2
View File
@@ -166,8 +166,8 @@ _filter_mkfs()
print STDERR "dirversion=$1\ndirbsize=$2\n";
print STDOUT "naming =VERN bsize=XXX\n";
}
if (/^log\s+=(internal log|[\w|\/.-]+)\s+bsize=(\d+)\s+blocks=(\d+)/) {
print STDERR "ldev=\"$1\"\nlbsize=$2\nlblocks=$3\n";
if (/^log\s+=(internal log|[\w|\/.-]+)\s+bsize=(\d+)\s+blocks=(\d+)\s+version=(\d+)/) {
print STDERR "ldev=\"$1\"\nlbsize=$2\nlblocks=$3\nlversion=$4";
print STDOUT "log =LDEV bsize=XXX blocks=XXX\n";
}
if (/^realtime\s+=([\w|\/.-]+)\s+extsz=(\d+)\s+blocks=(\d+), rtextents=(\d+)/) {