From 5accc8408f2dac1e00d888e4fe75e6174ba2a940 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 2 Aug 2013 17:02:01 +0200 Subject: 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 --- stubs/uuid.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 stubs/uuid.c (limited to 'stubs/uuid.c') diff --git a/stubs/uuid.c b/stubs/uuid.c new file mode 100644 index 0000000..ffc0ed4 --- /dev/null +++ b/stubs/uuid.c @@ -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; +} + -- cgit v1.1