]> git.proxmox.com Git - pve-container.git/commitdiff
Fix #925: activate volume before trying to resize
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 31 Mar 2016 07:52:35 +0000 (09:52 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 1 Apr 2016 07:35:38 +0000 (09:35 +0200)
src/PVE/API2/LXC.pm

index ea1e942c600fa44ab5164c5e92b8b06ded65c31b..25a912fb5c2fb801794ff73b56288b0dadac54c7 100644 (file)
@@ -1298,6 +1298,8 @@ __PACKAGE__->register_method({
 
            $rpcenv->check($authuser, "/storage/$storeid", ['Datastore.AllocateSpace']);
 
+           PVE::Storage::activate_volumes($storage_cfg, [$volid]);
+
            my $size = PVE::Storage::volume_size_info($storage_cfg, $volid, 5);
            $newsize += $size if $ext;
            $newsize = int($newsize);