[libvirt] [PATCHv3 2c/9] qemu: Use qemuAliasFromDisk instead of qemuDeviceDriveHostAlias

Ján Tomko jtomko at redhat.com
Tue Aug 2 14:03:26 UTC 2016


On Mon, Aug 01, 2016 at 08:48:27AM -0400, John Ferlan wrote:
>Since we already have a function that will generate the drivestr from
>the alias, let's use it and remove the qemuDeviceDriveHostAlias.
>
>Move the QEMU_DRIVE_HOST_PREFIX definition into qemu_alias.h.
>
>Also alter qemuAliasFromDisk to use the QEMU_DRIVE_HOST_PREFIX instead
>of "drive-%s".
>
>Signed-off-by: John Ferlan <jferlan at redhat.com>
>---
> src/qemu/qemu_alias.c        | 13 +++++++++++--
> src/qemu/qemu_alias.h        |  2 ++
> src/qemu/qemu_command.c      | 11 -----------
> src/qemu/qemu_command.h      |  1 -
> src/qemu/qemu_hotplug.c      |  4 ++--
> src/qemu/qemu_migration.c    |  2 +-
> src/qemu/qemu_monitor_json.c |  2 +-
> src/qemu/qemu_monitor_text.c |  2 +-
> 8 files changed, 18 insertions(+), 19 deletions(-)
>

ACK

Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160802/847a233f/attachment-0001.sig>


More information about the libvir-list mailing list