提交 ed8a6d6a 编写于 作者: R Richard W.M. Jones

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.
上级 c1bc644b
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);
}
memcpy(uuid, &domain->uuid[0], VIR_UUID_BUFLEN);
return (0);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册