]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: additions to domain xml for disks
authorEric Blake <eblake@redhat.com>
Sat, 13 Aug 2011 19:20:21 +0000 (13:20 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 5 Sep 2011 13:03:04 +0000 (07:03 -0600)
commit471235307f0de3c05b3508755bcc35949a954e1a
treecf40a9662e5bb2c2f9c198cbe0aeaf6a68e77fab
parent5a1f2728754a7b7bea4efd245d7171ab6286d681
snapshot: additions to domain xml for disks

As discussed here:
https://www.redhat.com/archives/libvir-list/2011-August/msg00361.html
https://www.redhat.com/archives/libvir-list/2011-August/msg00552.html

Adds snapshot attribute and transient sub-element:

<devices>
  <disk type=... snapshot='no|internal|external'>
    ...
    <transient/>
  </disk>
</devices>

* docs/schemas/domaincommon.rng (snapshot): New define.
(disk): Add snapshot and persistent attributes.
* docs/formatdomain.html.in: Document them.
* src/conf/domain_conf.h (virDomainDiskSnapshot): New enum.
(_virDomainDiskDef): New fields.
* tests/qemuxml2argvdata/qemuxml2argv-disk-transient.xml: New
test of rng, no args counterpart until qemu support is complete.
* tests/qemuxml2argvdata/qemuxml2argv-disk-snapshot.args: New
file, snapshot attribute does not affect args.
* tests/qemuxml2argvdata/qemuxml2argv-disk-snapshot.xml: Likewise.
* tests/qemuxml2argvtest.c (mymain): Run new test.
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
tests/qemuxml2argvdata/qemuxml2argv-disk-snapshot.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-snapshot.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-transient.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c