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

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

 



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  -=| 


[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]