]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Introduce new XMLs to specify disk source using libvirt storage
authorOsier Yang <jyang@redhat.com>
Thu, 4 Apr 2013 19:37:56 +0000 (03:37 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 8 Apr 2013 10:48:14 +0000 (18:48 +0800)
commit4bc331c8945152d8942a23383c3eb92da1bc4194
treed03341c75b302341a2c626904ca9cf12dac24e76
parenta05b0fc1ab6b4915e6e8539dea9da654c0d5a8d2
Introduce new XMLs to specify disk source using libvirt storage

With this patch, one can specify the disk source using libvirt
storage like:

  <disk type='volume' device='disk'>
    <driver name='qemu' type='raw' cache='none'/>
    <source pool='default' volume='fc18.img'/>
    <target dev='vdb' bus='virtio'/>
  </disk>

"seclabels" and "startupPolicy" are not supported for this new
disk type ("volume"). They will be supported in later patches.

docs/formatdomain.html.in:
  * Add documents for new XMLs
docs/schemas/domaincommon.rng:
  * Add rng for new XMLs;
src/conf/domain_conf.h:
  * New struct for 'volume' type disk source (virDomainDiskSourcePoolDef)
  * Add VIR_DOMAIN_DISK_TYPE_VOLUME for enum virDomainDiskType
src/conf/domain_conf.c:
  * New helper virDomainDiskSourcePoolDefParse to parse the 'volume'
    type disk source.
  * New helper virDomainDiskSourcePoolDefFree to free the source def
    if 'volume' type disk.
tests/qemuxml2argvdata/qemuxml2argv-disk-source-pool.xml:
tests/qemuxml2xmltest.c:
  * New test
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
tests/qemuxml2argvdata/qemuxml2argv-disk-source-pool.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c