2 ## First arg is expected number of blocks. Rest are args to be passed to dump.
6 echo "Expecting estimate around $expectedest blocks:"
7 est
=`/sbin/dump $* 2>&1 | grep estimated`
9 blkest
=`echo $est | awk '{print $3;}'`
11 diff=`echo $expectedest $blkest |\
12 awk '{if ($1<$2) print $2-$1; else print $1-$2;}'`
15 ## Use an error threshold of $thresh blocks. The error could arise from
16 ## one machine with a larger / and /tmp than the system on which this
17 ## test was developed.
19 if [ $diff -gt $thresh ]; then
20 echo "Error: estimated $blkest blocks!"