[libvirt] [PATCH 0/8] Simplify mutually exclusive argument handling in virsh

Peter Krempa pkrempa at redhat.com
Thu Mar 7 12:52:59 UTC 2013


This patchset introduces a new macro that allows simple checking for mutually
exclusive arguments in virsh and uses it in many occasions in virs.

Peter Krempa (8):
  virsh: Introduce macros to reject mutually exclusive arguments
  virsh-snapshot: Refactor virsh snapshot-list
  virsh-host: Refactor cmdFreecell
  virsh-domain: Fix flag name in error message to match the check
  virsh-snapshot: Refactor cmdSnapshotCurrent
  virsh-snapshot: Use the mutually exclusive params macro in
    cmdSnapshotEdit
  virsh-snapshot: Simplify cleanup path in cmdSnapshotEdit
  virsh-domain: Simplify usage of --current, --live and --config flags

 po/POTFILES.in         |   1 +
 tools/virsh-domain.c   | 262 +++++++++++++++++++++----------------------------
 tools/virsh-host.c     |  55 +++++------
 tools/virsh-snapshot.c | 181 +++++++++++++---------------------
 tools/virsh.h          |  42 ++++++++
 5 files changed, 248 insertions(+), 293 deletions(-)

-- 
1.8.1.1




More information about the libvir-list mailing list