]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Translate the pool disk source earlier
authorOsier Yang <jyang@redhat.com>
Thu, 4 Apr 2013 19:38:00 +0000 (03:38 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 8 Apr 2013 11:02:34 +0000 (19:02 +0800)
commit60b78b33e1804fa104b63f667caef49e082fa6f9
treecfebefdb0a412eda994b7af9cec9ea5608c62e13
parent664270b849679149d9bbb238880778e8d1922e0e
qemu: Translate the pool disk source earlier

To support "shareable" for volume type disk, we have to translate
the source before trying to add the shared disk entry. To achieve
the goal, this moves the helper qemuTranslateDiskSourcePool into
src/qemu/qemu_conf.c, and introduce an internal only member (voltype)
for struct _virDomainDiskSourcePoolDef, to record the underlying
volume type for use when building the drive string.

Later patch will support "shareable" volume type disk.
src/conf/domain_conf.h
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/qemu_driver.c
src/qemu/qemu_process.c