• E
    snapshot: additions to domain xml for disks · 47123530
    Eric Blake 提交于
    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.
    47123530
qemuxml2argvtest.c 23.1 KB