Make this test work for fs block size < page size
authorEric Sandeen <sandeen@sgi.com>
Wed, 31 Jul 2002 21:32:56 +0000 (21:32 +0000)
committerEric Sandeen <sandeen@sgi.com>
Wed, 31 Jul 2002 21:32:56 +0000 (21:32 +0000)
009

diff --git a/009 b/009
index cc3dc93d27d8d62e13304c4be61385aae9a48798..48994274371cd911f99a55304d625752323f44d7 100755 (executable)
--- a/009
+++ b/009
@@ -46,7 +46,6 @@ here=`pwd`
 tmp=/tmp/$$
 status=1       # failure is the default!
 trap "_cleanup; exit \$status" 0 1 2 3 15
-bsize=`$here/src/getpagesize`
 
 _cleanup()
 {
@@ -64,13 +63,16 @@ _block_filter()
 _init()
 {
     echo "*** mkfs"
-    if ! mkfs_xfs $SCRATCH_DEV >$tmp.out 2>&1
+    if ! (mkfs_xfs $SCRATCH_DEV | _filter_mkfs 1>/dev/null 2>$tmp.out)
     then
        cat $tmp.out
         echo "failed to mkfs $SCRATCH_DEV"
         exit 1
     fi
 
+    source $tmp.out
+    bsize=$dbsize
+
     echo "*** mount"
     if ! mount $SCRATCH_DEV $SCRATCH_MNT -t xfs
     then