[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 6/7] VMware ESX: Add esxDomainUndefine() based on esxVI_UnregisterVM()

On Thu, Sep 03, 2009 at 06:45:54PM +0200, Matthias Bolte wrote:
> * src/esx/esx_driver.c: add esxDomainUndefine() based on
>   esxVI_UnregisterVM()
> * src/esx/esx_vi_methods.[ch]: add esxVI_UnregisterVM()

  Looks fine, there is just that small limitiation

+    if (powerState != esxVI_VirtualMachinePowerState_Suspended &&
+        powerState != esxVI_VirtualMachinePowerState_PoweredOff) {
+                  "Domain is not suspended or powered off");
+        goto failure;

  I don't think we have that restriction of non-running domain
in other drivers, but I think it's fine to error then, just a driver
specific behaviour.

  Patch looks just fine, applied,

   thanks !


Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]