From: Nathan Scott Date: Thu, 4 Apr 2002 01:20:23 +0000 (+0000) Subject: don't assume that the pagesize is 4K. X-Git-Tag: v1.1.0~1136 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=004ff5d9630321cf37f29af5ce8837935b15038d;p=users%2Fhch%2Fxfstests-dev.git don't assume that the pagesize is 4K. --- diff --git a/009 b/009 index f4aacbc04..5b2b1c444 100755 --- a/009 +++ b/009 @@ -46,6 +46,7 @@ here=`pwd` tmp=/tmp/$$ status=1 # failure is the default! trap "_cleanup; exit \$status" 0 1 2 3 15 +bsize=`$here/src/getpagesize` _cleanup() { @@ -55,7 +56,9 @@ _cleanup() _block_filter() { - sed -e 's/[0-9][0-9]*\.\.[0-9][0-9]*/BLOCKRANGE/g' + sed \ + -e 's/[0-9][0-9]*\.\.[0-9][0-9]*/BLOCKRANGE/g' \ + -e "s/blocksize $bsize/blocksize BSIZE/g" } _init() @@ -102,20 +105,20 @@ out=$SCRATCH_MNT/$$.tmp echo "*** test 1 - reservations cleared on O_TRUNC" rm -f $out -cat <