1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00
libvirt/tests/domainschemadata
Jiri Denemark a2e369bc00 conf: Output disk backing store details in domain XML
The XML for quite a longish backing chain is shown below:

  <disk type='network' device='disk'>
    <driver name='qemu' type='qcow2'/>
    <source protocol='nbd' name='bar'>
      <host transport='unix' socket='/var/run/nbdsock'/>
    </source>
    <backingStore type='block' index='1'>
      <format type='qcow2'/>
      <source dev='/dev/HostVG/QEMUGuest1'/>
      <backingStore type='file' index='2'>
        <format type='qcow2'/>
        <source file='/tmp/image2.qcow'/>
        <backingStore type='file' index='3'>
          <format type='qcow2'/>
          <source file='/tmp/image3.qcow'/>
          <backingStore type='file' index='4'>
            <format type='qcow2'/>
            <source file='/tmp/image4.qcow'/>
            <backingStore type='file' index='5'>
              <format type='qcow2'/>
              <source file='/tmp/image5.qcow'/>
              <backingStore type='file' index='6'>
                <format type='raw'/>
                <source file='/tmp/Fedora-17-x86_64-Live-KDE.iso'/>
                <backingStore/>
              </backingStore>
            </backingStore>
          </backingStore>
        </backingStore>
      </backingStore>
    </backingStore>
    <target dev='vdb' bus='virtio'/>
  </disk>

Various disk types and formats can be mixed in one chain. The
<backingStore/> empty element marks the end of the backing chain and it
is there mostly for future support of parsing the chain provided by a
user. If it's missing, we are supposed to probe for the rest of the
chain ourselves, otherwise complete chain was provided by the user. The
index attributes of backingStore elements can be used to unambiguously
identify a specific part of the image chain.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2014-04-24 16:06:13 +02:00
..
backing-chains.xml conf: Output disk backing store details in domain XML 2014-04-24 16:06:13 +02:00
domain-lxc-simple.xml Add XML config for resource partitions 2013-04-15 17:35:31 +01:00
domain-openvz-simple.xml openvz: support file system quota reporting 2012-05-24 11:35:02 +02:00
domain-parallels-ct-simple.xml parallels: implement containers creation 2012-09-13 21:19:58 +08:00
domain-parallels-vm-simple.xml parallels: add domain configuration example 2012-08-15 16:39:40 +08:00
portprofile.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
qemu-simple-description-title.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
timers.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00