]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Refactor qemuGetDriveSourceString to take virStorageSourcePtr
authorPeter Krempa <pkrempa@redhat.com>
Tue, 8 Apr 2014 15:50:50 +0000 (17:50 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 9 Apr 2014 12:39:34 +0000 (14:39 +0200)
commit816f0f93ea64c0cb5a1d4ebb59689b1671042580
tree4c6362e60937f6b1b8f1b4e61d82e31607cc4828
parentcecd6566048d1a2fdb32d7fe6344b785af80882a
qemu: Refactor qemuGetDriveSourceString to take virStorageSourcePtr

Refactor the function to avoid multiple wrappers splitting identical
fields from the now common metadata struct.

The refactor is done by folding in the wrapper used for disk sources
which allows us to lookup secrets via the secret driver. This may allow
using stored secrets for snapshot disk images too in the future.
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_driver.c