Whoops, use a fixed 4k for alloc's "bsize" parameter, seems
authorEric Sandeen <sandeen@sgi.com>
Thu, 1 Aug 2002 15:04:44 +0000 (15:04 +0000)
committerEric Sandeen <sandeen@sgi.com>
Thu, 1 Aug 2002 15:04:44 +0000 (15:04 +0000)
that this is independent of the fs block size.

009

diff --git a/009 b/009
index 48994274371cd911f99a55304d625752323f44d7..d133f2c8719b3c9bf0f1a596ef0bf85f6c0fe07f 100755 (executable)
--- a/009
+++ b/009
@@ -46,6 +46,9 @@ here=`pwd`
 tmp=/tmp/$$
 status=1       # failure is the default!
 trap "_cleanup; exit \$status" 0 1 2 3 15
+# This isn't really related to fs block size, it's just what
+# alloc uses for the "block" unit in it's input parameters...
+bsize=4096
 
 _cleanup()
 {
@@ -63,16 +66,13 @@ _block_filter()
 _init()
 {
     echo "*** mkfs"
-    if ! (mkfs_xfs $SCRATCH_DEV | _filter_mkfs 1>/dev/null 2>$tmp.out)
+    if ! mkfs_xfs $SCRATCH_DEV >$tmp.out 2>&1
     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