[Libvir] uuid of newly created domain
Richard W.M. Jones
rjones at redhat.com
Wed Apr 2 16:24:46 UTC 2008
On Mon, Mar 31, 2008 at 06:17:44PM -0700, Vadim Zaliva wrote:
> On Mar 31, 2008, at 16:28, Daniel P. Berrange wrote:
>> You need to call
>> virDomainFree(virDomainPtr dom)
>> to actually release the handle.
> I could not figure out how this could be expressed via Ruby bindings. This
> function is called when object is freed, but when it happens is controlled
> by GC.
> For example, KDE Ruby binding are using dispose() method paradigm to solve
> this kind of problem:
> Should we add one to Domain class?
> P.S. I think the Python bindings have the same problem, virDomainPtr() is
> called from __del__() there.
OCaml bindings have the same problem as well, but it's not something I
feel any urge to fix there. To me it seems more like a C/libvirt bug.
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
More information about the libvir-list