]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: make vcpucount use --current consistently
authorEric Blake <eblake@redhat.com>
Mon, 18 Jul 2011 22:01:48 +0000 (16:01 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 25 Jul 2011 21:51:22 +0000 (15:51 -0600)
commit4b7a8e9c0da01be1251fe0a92a5eb802e891044f
tree0c0c52908ba9bfb996526b7825aaffda15d50522
parent59d042871ce9e6356f881c7d7296aee0614e13d1
virsh: make vcpucount use --current consistently

Rename the existing --current flag to the new name --active,
while adding a new flag --current to expose the new
VIR_DOMAIN_AFFECT_CURRENT flag of virDomainGetVcpusFlags.

For backwards compability, the output does not change (even
though the label "current" no longer matches the spelling of
the option that would trigger that number in isolation), and
we accept "--current --live" as an undocumented synonym for
"--active --live" to avoid breaking any existing clients.

* tools/virsh.c (cmdVcpucount): Add --active flag, and rearrange
existing flag handling to expose VIR_DOMAIN_AFFECT_CURRENT support.
* tools/virsh.pod (vcpucount): Document this.
tools/virsh.c
tools/virsh.pod