mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
storage: rbd: qemu: Add support for specifying internal RBD snapshots
Some storage systems have internal support for snapshots. Libvirt should be able to select a correct snapshot when starting a VM. This patch adds a XML element to select a storage source snapshot for the RBD protocol which supports this feature.
This commit is contained in:
@@ -1679,6 +1679,7 @@
|
||||
<driver name="qemu" type="raw"/>
|
||||
<source protocol="rbd" name="image_name2">
|
||||
<host name="hostname" port="7000"/>
|
||||
<snapshot name="snapname"/>
|
||||
</source>
|
||||
<target dev="hdc" bus="ide"/>
|
||||
<auth username='myuser'>
|
||||
@@ -1952,15 +1953,17 @@
|
||||
is only valid when the specified storage volume is of 'file' or
|
||||
'block' type).
|
||||
<p>
|
||||
When the disk <code>type</code> is "network", the <code>source</code>
|
||||
may have zero or more <code>host</code> sub-elements used to
|
||||
specify the hosts to connect.
|
||||
The <code>source</code> element may contain the following sub elements:
|
||||
</p>
|
||||
|
||||
<dl>
|
||||
<dt><code>host</code></dt>
|
||||
<dd>
|
||||
<p>
|
||||
When the disk <code>type</code> is "network", the <code>source</code>
|
||||
may have zero or more <code>host</code> sub-elements used to
|
||||
specify the hosts to connect.
|
||||
|
||||
The <code>host</code> element supports 4 attributes, viz. "name",
|
||||
"port", "transport" and "socket", which specify the hostname,
|
||||
the port number, transport type and path to socket, respectively.
|
||||
@@ -2013,6 +2016,13 @@
|
||||
AF_UNIX socket.
|
||||
</p>
|
||||
</dd>
|
||||
<dt><code>snapshot</code></dt>
|
||||
<dd>
|
||||
The <code>name</code> attribute of <code>snapshot</code> element can
|
||||
optionally specify an internal snapshot name to be used as the
|
||||
source for storage protocols.
|
||||
Supported for 'rbd' <span class="since">since 1.2.11 (QEMU only).</span>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user