[libvirt] [PATCH] Change virsh list behavior

Daniel P. Berrange berrange at redhat.com
Thu Jun 26 15:57:40 UTC 2008

On Thu, Jun 26, 2008 at 11:51:01AM -0400, Daniel Veillard wrote:
> On Wed, Jun 25, 2008 at 03:42:59PM -0700, Ryan Scott wrote:
> > 
> > At the popular request of pretty much everyone in Sun who uses virsh...
> > 
> > Change virsh list to list all domains, and add an "--active" flag to 
> > list only the active domains.
>   But that breaks the behaviour for everybody and sounds a bit late
> for this. I'm fine with adding a --active flag to be able to explicitely
> specify the behaviour chosen, but changing the default behaviour directly
> looks a problem to me.
>   If you really use it from command line maybe a shell alias for
> 'virsh list' can do, no ?

Yep, the compatability with existing scripts using virsh is the reason
I didn't change it when we first added inactive domain support. One
possible option is for us to add a config file for virsh in, for
example /etc/libvirt/virsh.conf  which could let the admin override
the default settings.

|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

More information about the libvir-list mailing list