|
|
| File: [Development] / xfs-cmds / xfstests / dmapi / src / suite2 / bindir / make_holey (download)
Revision 1.6, Wed Nov 9 02:50:19 2005 UTC (11 years, 11 months ago) by nathans.longdrop.melbourne.sgi.com
Update copyright annotations and license boilerplates to correspond with SGI Legals preferences. Merge of master-melb:xfs-cmds:24329a by kenmcd. |
#!/bin/ksh
#
# Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
#
if [[ $# != 3 ]]
then print "usage: ${0##*/} bindir target_file count"
exit 1
fi
typeset -i offset
typeset -i length
typeset -i count
RANDOM=$SECONDS
offset=0
length=$RANDOM
count=$3
while (( count > 0 ))
do
print "Count: $count"
$1/wf -l $length -L $offset -b 512 $2
(( offset = RANDOM * 512 + offset + length ))
(( length = RANDOM ))
(( count = count - 1 ))
done