[Libvir] [QEMU 2/3] add commands for inactive domains to virsh

Daniel P. Berrange berrange at redhat.com
Mon Aug 28 11:17:38 UTC 2006


On Mon, Aug 28, 2006 at 10:29:06AM +0200, Karel Zak wrote:
> On Mon, Aug 28, 2006 at 12:16:43AM +0100, Daniel P. Berrange wrote:
> >  static int
> >  cmdList(vshControl * ctl, vshCmd * cmd ATTRIBUTE_UNUSED)
> 
> >      vshPrintExtra(ctl, "%3s %-20s %s\n", "Id", "Name", "State");
> >      vshPrintExtra(ctl, "----------------------------------\n");
> 
>      virsh list --all 
> 
>  Is there any way how differ from active and inactive domain? Maybe
>  add there some extra column "alive"?

Inactive domains will all have an ID of '-1' and a state of 'shut off'
so its fairly easy to tell them apart

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 




More information about the libvir-list mailing list