]> git.proxmox.com Git - pve-container.git/commitdiff
format_disk: call activate_volume()
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 10 Sep 2015 09:14:45 +0000 (11:14 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 10 Sep 2015 09:14:45 +0000 (11:14 +0200)
src/PVE/LXC.pm

index 53f77a3a428ce256b21f25ec6b473f4d86a5aa5e..f34447023664c355cfe04ac530e05167ab62d4fd 100644 (file)
@@ -2063,6 +2063,8 @@ sub format_disk {
 
     die "cannot format volume '$volid' with no storage\n" if !$storage;
 
+    PVE::Storage::activate_volumes($storage_cfg, [$volid]);
+
     my $path = PVE::Storage::path($storage_cfg, $volid);
 
     my ($vtype, undef, undef, undef, undef, $isBase, $format) =