mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
Core code contains Xen-ism UUID of dom0 = 0..0
* src/libvirt.c: Remove a Xen-ism from the core code, the assumption that dom0's UUID is all zeroes.
This commit is contained in:
parent
c1bc644bad
commit
ed8a6d6a10
@ -1,3 +1,9 @@
|
||||
Wed Apr 9 15:00:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
|
||||
|
||||
Core code contains Xen-ism UUID of dom0 = 0..0
|
||||
* src/libvirt.c: Remove a Xen-ism from the core code, the
|
||||
assumption that dom0's UUID is all zeroes.
|
||||
|
||||
Wed Apr 9 14:56:00 BST 2008 Richard W.M. Jones <rjones@redhat.com>
|
||||
|
||||
Warn about conn, dom and net fields in virterror
|
||||
|
@ -1794,11 +1794,8 @@ virDomainGetUUID(virDomainPtr domain, unsigned char *uuid)
|
||||
return (-1);
|
||||
}
|
||||
|
||||
if (domain->id == 0) {
|
||||
memset(uuid, 0, VIR_UUID_BUFLEN);
|
||||
} else {
|
||||
memcpy(uuid, &domain->uuid[0], VIR_UUID_BUFLEN);
|
||||
}
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user