diff --git a/Makefile b/Makefile index f2e04291..62d0ed49 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ RELEASE=2.0 VERSION=2.0 PACKAGE=qemu-server -PKGREL=32 +PKGREL=33 DESTDIR= PREFIX=/usr diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 3619cef3..9537a3cb 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -53,8 +53,7 @@ my $check_storage_access = sub { die "no storage ID specified (and no default storage)\n" if !$storeid; $rpcenv->check($authuser, "/storage/$storeid", ['Datastore.AllocateSpace']); } else { - my $path = $rpcenv->check_volume_access($authuser, $storecfg, $vmid, $volid); - die "image '$path' does not exists\n" if (!(-f $path || -b $path)); + $rpcenv->check_volume_access($authuser, $storecfg, $vmid, $volid); } }); }; @@ -87,6 +86,7 @@ my $create_disks = sub { $res->{$ds} = PVE::QemuServer::print_drive($vmid, $disk); } else { my $path = $rpcenv->check_volume_access($authuser, $storecfg, $vmid, $volid); + PVE::Storage::activate_volumes($storecfg, [ $volid ]); die "image '$path' does not exists\n" if (!(-f $path || -b $path)); $res->{$ds} = $settings->{$ds}; } @@ -301,6 +301,7 @@ __PACKAGE__->register_method({ && $rpcenv->{type} ne 'cli'; } else { my $path = $rpcenv->check_volume_access($authuser, $storecfg, $vmid, $archive); + PVE::Storage::activate_volumes($storecfg, [ $archive ]); die "can't find archive file '$archive'\n" if !($path && -f $path); $archive = $path; } diff --git a/changelog.Debian b/changelog.Debian index f0328ec7..ba7c2614 100644 --- a/changelog.Debian +++ b/changelog.Debian @@ -1,3 +1,9 @@ +qemu-server (2.0-33) unstable; urgency=low + + * fix bug #121: activate volumes correctly + + -- Proxmox Support Team Thu, 29 Mar 2012 11:09:36 +0200 + qemu-server (2.0-32) unstable; urgency=low * fix usb host syntax (correctly pass hexadecimal numbers with prefix