[libvirt] [PATCH] show compiled in options in virsh --version

Daniel Veillard veillard at redhat.com
Thu Oct 28 19:22:26 UTC 2010


On Thu, Oct 28, 2010 at 04:14:46PM +0100, Daniel P. Berrange wrote:
> On Thu, Oct 28, 2010 at 09:02:31AM -0600, Eric Blake wrote:
> > We already have:
> > 
> > $ virsh version
> > Compiled against library: libvir 0.8.2
> > Using library: libvir 0.8.2
> > Using API: QEMU 0.8.2
> > Running hypervisor: QEMU 0.12.5
> > 
> > Can we just beef that up, and leave 'virsh --version' as the short
> > information?
> 
> Same name but different information.  --version is telling you about
> the virsh binary version, while 'version' is telling you about the
> open connection to libvirt.  Putting the virsh binary build options
> in 'version' would be somewhat misleading, because they don't
> reflect the open connection

  Yeah I didn't want this to rely on a connection, it's not driver
specific in any way, which is why --version was looking fine, but I will
hook this to -V, that's very simple,

Daniel

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




More information about the libvir-list mailing list