[pve-devel] r5269 - qemu-server/pve2
svn-commits at proxmox.com
svn-commits at proxmox.com
Wed Oct 13 09:49:44 CEST 2010
Author: dietmar
Date: 2010-10-13 07:49:43 +0000 (Wed, 13 Oct 2010)
New Revision: 5269
Modified:
qemu-server/pve2/ChangeLog
qemu-server/pve2/qmrestore
Log:
Modified: qemu-server/pve2/ChangeLog
===================================================================
--- qemu-server/pve2/ChangeLog 2010-10-13 07:44:04 UTC (rev 5268)
+++ qemu-server/pve2/ChangeLog 2010-10-13 07:49:43 UTC (rev 5269)
@@ -1,3 +1,7 @@
+2010-10-13 Proxmox Support Team <support at proxmox.com>
+
+ * qmrestore: set bs=256k for 'dd'
+
2010-10-12 Proxmox Support Team <support at proxmox.com>
* PVE/QemuServer.pm (parse_drive): add 'backup=[yes|no]' attribute.
Modified: qemu-server/pve2/qmrestore
===================================================================
--- qemu-server/pve2/qmrestore 2010-10-13 07:44:04 UTC (rev 5268)
+++ qemu-server/pve2/qmrestore 2010-10-13 07:49:43 UTC (rev 5269)
@@ -131,7 +131,7 @@
}
if ($opts->{info}) {
- exec 'dd', "of=/dev/null";
+ exec 'dd', 'bs=256k', "of=/dev/null";
die "couldn't exec dd: $!\n";
}
@@ -218,7 +218,7 @@
print STDERR "restore data to '$path' ($filesize bytes)\n";
if ($opts->{prealloc} || $format ne 'raw' || (-b $path)) {
- exec 'dd', "of=$path";
+ exec 'dd', 'bs=256k', "of=$path";
die "couldn't exec dd: $!\n";
} else {
exec '/usr/lib/qemu-server/sparsecp', $path;
More information about the pve-devel
mailing list