allow mkfs arguments to be passed from the env for testing multiple

block sizes.
This commit is contained in:
Nathan Scott
2002-01-20 00:47:43 +00:00
parent a7d6e4ed5c
commit 36d5db422b
30 changed files with 56 additions and 33 deletions
+2 -2
View File
@@ -78,7 +78,7 @@ _require_scratch
# superblock (hanging around from earlier tests)...
#
size="-d size=100m"
mkfs -t xfs -f $size $SCRATCH_DEV >/dev/null 2>&1
mkfs_xfs -f $size $SCRATCH_DEV >/dev/null 2>&1
if [ $? -ne 0 ] # probably don't have a big enough scratch
then
_notrun "SCRATCH_DEV too small, results would be non-deterministic"
@@ -100,7 +100,7 @@ src/devzero -v -1 -n "$clear" $SCRATCH_DEV >/dev/null
# now kick off the real repair test...
#
mkfs -t xfs -f $size $SCRATCH_DEV | _filter_mkfs 2>$tmp.mkfs
mkfs_xfs -f $size $SCRATCH_DEV | _filter_mkfs 2>$tmp.mkfs
source $tmp.mkfs
_check_ag 0
_check_ag -1