[PATCH 16/17] qemuDomainPrepareHostdev: Don't base backend nodename on device alias

Ján Tomko jtomko at redhat.com
Mon Sep 14 13:50:27 UTC 2020


On a Friday in 2020, Peter Krempa wrote:
>QEMU's blockdev nodenames which are used to back SCSI/iSCSI hostdevs are
>limited to 32 characters. If a user passes a very long user alias as
>name of the host device it's easy to end up with a too-long nodename.
>
>To prevent this from happening don't base the nodename on the possibly
>user-specified alias but on the normal sequential node name generator.
>
>We then store the name in the status XML for further use.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_domain.c                        |  3 +-
> .../hostdev-scsi-lsi.x86_64-latest.args       | 38 ++++++++-----------
> ...ostdev-scsi-virtio-scsi.x86_64-latest.args | 36 +++++++++---------
> 3 files changed, 36 insertions(+), 41 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200914/a0ff95ac/attachment-0001.sig>


More information about the libvir-list mailing list