aboutsummaryrefslogtreecommitdiff
path: root/stubs/uuid.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-08-02 17:02:01 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2013-09-12 08:46:21 +0200
commit5accc8408f2dac1e00d888e4fe75e6174ba2a940 (patch)
treeedac711fe67c94fe04af6382b633292195663f7e /stubs/uuid.c
parent2d1fe1873a984d1c2c89ffa3d12949cafc718551 (diff)
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>
Diffstat (limited to 'stubs/uuid.c')
-rw-r--r--stubs/uuid.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/stubs/uuid.c b/stubs/uuid.c
new file mode 100644
index 0000000000..ffc0ed40ae
--- /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;
+}
+