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:
Richard W.M. Jones 2008-04-09 14:03:01 +00:00
parent c1bc644bad
commit ed8a6d6a10
2 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -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);
}
memcpy(uuid, &domain->uuid[0], VIR_UUID_BUFLEN);
return (0);
}