These changes make it possible to run more of the tests on busybox.
Signed-off-by: Ari Sundholm <ari@tuxera.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
_filter_fiemap()
{
- awk --posix '
+ $AWK_PROG '
$3 ~ /hole/ {
print $1, $2, $3;
next;
# it is an extent or a hole
_filter_hole_fiemap()
{
- awk --posix '
+ $AWK_PROG '
$3 ~ /hole/ {
print $1, $2, $3;
next;
cd $SCRATCH_MNT/origin
- _disksize=`$DF_PROG --block-size=1 $SCRATCH_DEV | tail -1 | awk '{ print $5 }'`
+ _disksize=`$DF_PROG -B 1 $SCRATCH_DEV | tail -1 | $AWK_PROG '{ print $5 }'`
_disksize=$(($_disksize / 3))
_num=$(($_disksize / $count / $threads / 4096))
_count=$count