From 004ff5d9630321cf37f29af5ce8837935b15038d Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Thu, 4 Apr 2002 01:20:23 +0000 Subject: [PATCH] don't assume that the pagesize is 4K. --- 009 | 27 +++++++++++++++------------ 009.out | 22 +++++++++++----------- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/009 b/009 index f4aacbc0..5b2b1c44 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 <