From: Dietmar Maurer Date: Sat, 3 Nov 2012 06:55:11 +0000 (+0100) Subject: fix allocation size in qmrestore X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=445f06cdb193557c72b5aa83d347fbad1acac283;p=qemu-server.git fix allocation size in qmrestore --- diff --git a/Makefile b/Makefile index 28b411cf..f003ed2c 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ RELEASE=2.2 VERSION=2.0 PACKAGE=qemu-server -PKGREL=66 +PKGREL=67 DESTDIR= PREFIX=/usr diff --git a/changelog.Debian b/changelog.Debian index 5435cd51..1320bd44 100644 --- a/changelog.Debian +++ b/changelog.Debian @@ -1,3 +1,9 @@ +qemu-server (2.0-67) unstable; urgency=low + + * fix allocation size in qmrestore + + -- Proxmox Support Team Sat, 03 Nov 2012 07:54:06 +0100 + qemu-server (2.0-66) unstable; urgency=low * vzdump: restore sata drives correctly diff --git a/qmextract b/qmextract index 3b254456..f12724ee 100755 --- a/qmextract +++ b/qmextract @@ -162,7 +162,7 @@ sub extract_archive { my $cfg = cfs_read_file('storage.cfg'); my $scfg = PVE::Storage::storage_config($cfg, $storeid); - my $alloc_size = ($filesize + 1024 - 1)/1024; + my $alloc_size = int(($filesize + 1024 - 1)/1024); if ($scfg->{type} eq 'dir' || $scfg->{type} eq 'nfs') { # hack: we just alloc a small file (32K) - we overwrite it anyways $alloc_size = 32;