[libvirt] [PATCH 00/14] snapshot: improve dumpxml output

Eric Blake eblake at redhat.com
Thu Sep 22 20:34:54 UTC 2011


This series fixes 'virsh snapshot-dumpxml' to use nicer formatting.
Patch 1 adds some nice helper routines, patches 2-13 are mostly
mechanical conversions to use the helpers and pass indentation
levels through the entire call chain, and patch 14 adds a test
which uncovered a couple minor issues in how formatting was done.

Eric Blake (14):
  snapshot: indent domain xml when nesting, round 1
  snapshot: indent domain xml when nesting, round 2
  snapshot: indent domain xml when nesting, round 3
  snapshot: indent domain xml when nesting, round 4
  snapshot: indent domain xml when nesting, round 5
  snapshot: indent domain xml when nesting, round 6
  snapshot: indent domain xml when nesting, round 7
  snapshot: indent domain xml when nesting, round 8
  snapshot: indent domain xml when nesting, round 9
  snapshot: indent domain xml when nesting, round 10
  snapshot: indent domain xml when nesting, round 11
  snapshot: indent domain xml when nesting, round 12
  snapshot: indent domain xml when nesting, round 13
  snapshot: test domainsnapshot indentation

 .gitignore                                        |    1 +
 src/conf/capabilities.c                           |    6 +-
 src/conf/capabilities.h                           |    6 +-
 src/conf/cpu_conf.c                               |   43 +-
 src/conf/cpu_conf.h                               |    7 +-
 src/conf/domain_conf.c                            |  778 +++++++++++----------
 src/conf/domain_conf.h                            |    6 +-
 src/conf/network_conf.c                           |    8 +-
 src/conf/nwfilter_conf.c                          |   16 +-
 src/conf/nwfilter_params.c                        |   41 +-
 src/conf/nwfilter_params.h                        |    8 +-
 src/conf/storage_encryption_conf.c                |    4 +-
 src/cpu/cpu.c                                     |    2 +-
 src/libvirt_private.syms                          |    3 +
 src/qemu/qemu_domain.c                            |   39 +-
 src/qemu/qemu_driver.c                            |    2 +-
 src/qemu/qemu_migration.c                         |   23 +-
 src/util/buf.c                                    |   70 ++-
 src/util/buf.h                                    |   19 +-
 src/util/network.c                                |   49 +-
 src/util/network.h                                |    9 +-
 src/util/sysinfo.c                                |  407 ++++-------
 src/util/sysinfo.h                                |    4 +-
 tests/Makefile.am                                 |   14 +-
 tests/cputest.c                                   |    2 +-
 tests/domainsnapshotxml2xmlout/all_parameters.xml |    2 +-
 tests/domainsnapshotxml2xmlout/disk_snapshot.xml  |  102 ++--
 tests/domainsnapshotxml2xmlout/full_domain.xml    |   52 +-
 tests/domainsnapshotxml2xmltest.c                 |  128 ++++
 tests/testutils.c                                 |    2 +-
 tests/virbuftest.c                                |   32 +-
 31 files changed, 1033 insertions(+), 852 deletions(-)
 create mode 100644 tests/domainsnapshotxml2xmltest.c

-- 
1.7.4.4




More information about the libvir-list mailing list