[pve-devel] applied: [PATCH qemu-server] activate volume for cloudinit disk
Wolfgang Bumiller
w.bumiller at proxmox.com
Tue May 22 10:15:01 CEST 2018
applied
On Fri, May 18, 2018 at 02:59:02PM +0200, Dominik Csapak wrote:
> because it does not have to be activated (e.g. in case of lvm)
(and forgot to fix this contradicting message...)
>
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> PVE/QemuServer/Cloudinit.pm | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/PVE/QemuServer/Cloudinit.pm b/PVE/QemuServer/Cloudinit.pm
> index d536a0f..3cdf3a6 100644
> --- a/PVE/QemuServer/Cloudinit.pm
> +++ b/PVE/QemuServer/Cloudinit.pm
> @@ -30,6 +30,8 @@ sub commit_cloudinit_disk {
> my $storecfg = PVE::Storage::config();
> my $iso_path = PVE::Storage::path($storecfg, $drive->{file});
> my $scfg = PVE::Storage::storage_config($storecfg, $storeid);
> + my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
> + $plugin->activate_volume($storeid, $scfg, $volname);
> my $format = PVE::QemuServer::qemu_img_format($scfg, $volname);
>
> my $size = PVE::Storage::file_size_info($iso_path);
> --
> 2.11.0
More information about the pve-devel
mailing list