Re: just a question about virDomainLookupByName function

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

 



On Wed, Jun 28, 2006 at 05:00:47PM +0200, Philippe Berthault wrote:
> An ID may be passed to virDomainLookupByName function.
> In exemple:
>    virDomainLookupByName(conn, "1")
>    is equivalent to
>    virDomainLookupByID(conn, 1)

  humm ... bizarre, I never noticed that :-)

> This functionality is very useful but isn't written in the libvirt 
> documentation.
> 
> Is this functionality will continue to exist in future versions of 
> libvirt or not ?

  Well, I'm afraid it may be a specific property of the interface to xend
used, I honnestly don't know why this worked, this wasn't expected.
  I would not rely on it, and also depending on the available interfaces
virDomainLookupByName and virDomainLookupByID could be really expensive
or really cheap, they don't have the same properties, also IDs can change
for example if you do save and restore operations of a domain.

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillard@xxxxxxxxxx  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]