mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 01:43:23 +00:00
7076b4b72c
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.
34 lines
1.1 KiB
XML
34 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' type='file'>
|
|
<driver type='qed'/>
|
|
</disk>
|
|
<disk name='hde' snapshot='external' type='file'>
|
|
<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>
|