mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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
This commit is contained in:
@@ -20,6 +20,23 @@
|
|||||||
# Mountain View, CA 94043, USA, or: http://www.sgi.com
|
# 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()
|
_mount_opts()
|
||||||
{
|
{
|
||||||
case $FSTYP in
|
case $FSTYP in
|
||||||
|
|||||||
Reference in New Issue
Block a user