X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=blobdiff_plain;f=009;h=d133f2c8719b3c9bf0f1a596ef0bf85f6c0fe07f;hp=f4aacbc0485a97f0a47615c771ac576e3aefe477;hb=88b27b1e606947a5a192378cb1dcb6c29450e6e7;hpb=36d5db422bed38ae326a18770b0ffacf6626425c diff --git a/009 b/009 index f4aacbc0..d133f2c8 100755 --- a/009 +++ b/009 @@ -5,7 +5,7 @@ # alloc test # #----------------------------------------------------------------------- -# Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. +# Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved. # # This program is free software; you can redistribute it and/or modify it # under the terms of version 2 of the GNU General Public License as @@ -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() { @@ -55,13 +58,15 @@ _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() { echo "*** mkfs" - if ! mkfs_xfs -f $SCRATCH_DEV >$tmp.out 2>&1 + if ! mkfs_xfs $SCRATCH_DEV >$tmp.out 2>&1 then cat $tmp.out echo "failed to mkfs $SCRATCH_DEV" @@ -102,20 +107,20 @@ out=$SCRATCH_MNT/$$.tmp echo "*** test 1 - reservations cleared on O_TRUNC" rm -f $out -cat <