]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Translate the iscsi pool/volume disk source
authorJohn Ferlan <jferlan@redhat.com>
Thu, 18 Jul 2013 11:00:19 +0000 (07:00 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 22 Jul 2013 18:01:04 +0000 (14:01 -0400)
commit1b4eaa61950780b66aeba1c85b8a9e4f910f49bc
tree1017b0ead9e6c462108d3031c46c72d2a81bcf8e
parent1f49b05a82fd45bb37ce374e11706a40e782c3b6
qemu: Translate the iscsi pool/volume disk source

The difference with already supported pool types (dir, fs, block)
is: there are two modes for iscsi pool (or network pools in future),
one can specify it either to use the volume target path (the path
showed up on host) with mode='host', or to use the remote URI qemu
supports (e.g. file=iscsi://example.org:6000/iqn.1992-01.com.example/1)
with mode='direct'.

For 'host' mode, it copies the volume target path into disk->src. For
'direct' mode, the corresponding info in the *one* pool source host def
is copied to disk->hosts[0].
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_command.c
src/qemu/qemu_conf.c