From: Allan Randall Date: Mon, 15 May 2006 06:10:31 +0000 (+0000) Subject: added dd function to handle variations of dd output in Linux X-Git-Tag: v1.1.0~645 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=b51a45e297110c2b61fbaa22b217f8b533c14851 added dd function to handle variations of dd output in Linux Merge of master-melb:xfs-cmds:25929a by kenmcd. added dd function to handle variations of dd output in Linux --- diff --git a/common.rc b/common.rc index 971c676c..83e1e17f 100644 --- a/common.rc +++ b/common.rc @@ -20,6 +20,23 @@ # Mountain View, CA 94043, USA, or: http://www.sgi.com #----------------------------------------------------------------------- +dd() +{ + if [ "$HOSTOS" == "Linux" ] + then + command dd --help | grep noxfer > /dev/null 2>&1 + + if [ "$?" -eq 0 ] + then + command dd status=noxfer $@ + else + command dd $@ + fi + else + command dd $@ + fi +} + _mount_opts() { case $FSTYP in