Use 'dd' option ibs/obs instead of bs

See http://lists.gnu.org/archive/html/bug-coreutils/2011-03/msg00034.html
This commit is contained in:
Dietmar Maurer 2011-09-12 08:34:02 +02:00
parent ca0cef2624
commit 76178b62d9

View File

@ -218,7 +218,7 @@ if ($opts->{extract}) {
print STDERR "restore data to '$path' ($filesize bytes)\n";
if ($opts->{prealloc} || $format ne 'raw' || (-b $path)) {
exec 'dd', 'bs=256K', "of=$path";
exec 'dd', 'ibs=256K', 'obs=256K', "of=$path";
die "couldn't exec dd: $!\n";
} else {
exec '/usr/lib/qemu-server/sparsecp', $path;