]> xenbits.xensource.com Git - libvirt.git/commit
conf: Introduce new XML tag "mode" for disk source
authorJohn Ferlan <jferlan@redhat.com>
Thu, 18 Jul 2013 17:18:03 +0000 (13:18 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 22 Jul 2013 18:01:04 +0000 (14:01 -0400)
commitc00b2f0dd120c81c3bc87f1def154b6f60fc9a8c
tree1579279120ea0cebcd551e8bec9a6cd6c91f1dd1
parent5c62d5ea078cada03b30769ee16e9fcdb238346a
conf: Introduce new XML tag "mode" for disk source

There are two ways to use a iSCSI LUN as disk source for qemu.

 * The LUN's path as it shows up on host, e.g.
   /dev/disk/by-path/ip-$ip:3260-iscsi-$iqn-fc18:iscsi.iscsi0-lun-1

 * The libiscsi URI from the storage pool source element host attribute, e.g.
   iscsi://demo.org:6000/iqn.1992-01.com.example/1

For a "volume" type disk, if the specified "pool" is of iscsi
type, we should support to use the LUN in either of above 2 ways.
That's why to introduce a new XML tag "mode" for the disk source
(libvirt should support iscsi pool with libiscsi, but it's another
new feature, which should be done later).

The "mode" can be either of "host" or "direct". Use "host" to indicate
use of the LUN with the path as it shows up on host. Use "direct" to
indicate to use it with the source pool host URI (future patches may support
to use network type libvirt storage too, e.g. Ceph)
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
tests/qemuxml2argvdata/qemuxml2argv-disk-source-pool-mode.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c