]> git.proxmox.com Git - qemu-server.git/commitdiff
Use 'dd' option ibs/obs instead of bs
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 12 Sep 2011 06:34:02 +0000 (08:34 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 12 Sep 2011 06:34:02 +0000 (08:34 +0200)
See http://lists.gnu.org/archive/html/bug-coreutils/2011-03/msg00034.html

qmrestore

index de3279910d348f731a06f1a645fef1f487039196..a27571fd84b7f63dbe4e42d5c5d4821dfe4bbbca 100755 (executable)
--- a/qmrestore
+++ b/qmrestore
@@ -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;