[pve-devel] [PATCH 5/6] add a hook to call vm_deviceadd when the disk in config file are added

Dietmar Maurer dietmar at proxmox.com
Mon Oct 10 19:59:17 CEST 2011


what if you add several hotplug disks at one, and one action fails?

> -----Original Message-----
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> bounces at pve.proxmox.com] On Behalf Of Derumier Alexandre
> Sent: Montag, 10. Oktober 2011 16:47
> To: pve-devel at pve.proxmox.com
> Subject: [pve-devel] [PATCH 5/6] add a hook to call vm_deviceadd when the disk
> in config file are added
> 
> 
> Signed-off-by: Derumier Alexandre <aderumier at odiso.com>
> ---
>  PVE/QemuServer.pm |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 80ab7c7..70e3979
> 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -1302,6 +1302,7 @@ sub create_disks {
>  		    die "image '$path' does not exists\n";
>  		}
>  	    }
> +	    PVE::QemuServer::vm_deviceadd ($storecfg,$vmid,$ds, $disk);
>  	});
>      };
> 
> --
> 1.7.2.5
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel





More information about the pve-devel mailing list