mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
scsi: prefer UUID to VM name for the initiator name
The UUID is unique even across multiple hosts, thus it is better than a VM name even if it is less user-friendly. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
2d1fe1873a
commit
5accc8408f
4 changed files with 31 additions and 7 deletions
12
stubs/uuid.c
Normal file
12
stubs/uuid.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include "qemu-common.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
#include "qmp-commands.h"
|
||||
|
||||
UuidInfo *qmp_query_uuid(Error **errp)
|
||||
{
|
||||
UuidInfo *info = g_malloc0(sizeof(*info));
|
||||
|
||||
info->UUID = g_strdup(UUID_NONE);
|
||||
return info;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue