This patch fixes run_dd.sh to use echoerr() for redirecting
debug logs to the log file instead of messing up the output.
Test-Parameters: clientdistro=el6 serverdistro=el6 \
clientarch=x86_64 serverarch=x86_64 clientcount=4 \
osscount=2 mdscount=2 austeroptions=-R failover=true \
useiscsi=true testlist=recovery-double-scale
Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: I72c02a38c22fca4e7e806af6771e135efd506478
Reviewed-on: http://review.whamcloud.com/6027
Tested-by: Hudson
Reviewed-by: Li Wei <wei.g.li@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Tested-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
# combination in RHEL5 and OEL5, see BZ 21264
FREE_SPACE=$($LFS df $TESTDIR|awk '/filesystem summary:/ {print $5}')
BLKS=$((FREE_SPACE * 9 / 40))
- echo "Free disk space is $FREE_SPACE, 4k blocks to dd is $BLKS"
+ echoerr "Free disk space is $FREE_SPACE, 4k blocks to dd is $BLKS"
dd bs=4k count=$BLKS status=noxfer if=/dev/zero of=$TESTDIR/dd-file \
1>$LOG &