libvirt/tests/domainsnapshotxml2xmlin/disk_snapshot.xml
Peter Krempa 7076b4b72c snapshot: Add support for specifying snapshot disk backing type
Add support for specifying various types when doing snapshots. This will
later allow to do snapshots on network backed volumes. Disks of type
'volume' are not supported by snapshots (yet).

Also amend the test suite to check parsing of the various new disk
types that can now be specified.
2014-01-29 12:56:35 +01:00

35 lines
1.1 KiB
XML

<domainsnapshot>
<name>my snap name</name>
<description>!@#$%^</description>
<disks>
<disk name='/dev/HostVG/QEMUGuest1'/>
<disk name='hdb' snapshot='no'/>
<disk name='hdc' snapshot='internal'/>
<disk name='hdd' snapshot='external'>
<source/>
<driver type='qed'/>
</disk>
<disk name='hde' snapshot='external'>
<source file='/path/to/new'/>
</disk>
<disk name='hde' snapshot='external' type='file'>
<source file='/path/to/new2'/>
</disk>
<disk name='hdf' snapshot='external' type='block'>
<source dev='/path/to/new3'/>
</disk>
<disk name='hdg' snapshot='external' type='network'>
<source protocol='gluster' name='volume/path'>
<host name='host' port='1234'/>
</source>
</disk>
<disk name='hdh' snapshot='external' type='network'>
<source protocol='rbd' name='name'>
<host name='host' port='1234'/>
<host name='host2' port='1234' transport='rdma'/>
<host name='host3' port='1234'/>
</source>
</disk>
</disks>
</domainsnapshot>