提交 515618b9 编写于 作者: D Daniel Veillard

* src/libvirt.c src/proxy_internal.c src/xs_internal.c: fix the

  patch for rhbz#214264 in the case of Domain 0 on Xen and push the
  defaulting to "linux" down to the xen specific parts.
Daniel
上级 e444b199
Wed Nov 8 14:01:11 CET 2006 Daniel Veillard <veillard@redhat.com>
* src/libvirt.c src/proxy_internal.c src/xs_internal.c: fix the
patch for rhbz#214264 in the case of Domain 0 on Xen and push the
defaulting to "linux" down to the xen specific parts.
Tue Nov 7 16:17:23 EDT 2006 Daniel P. Berrange <berrange@redhat.com>
* python/generator.py: Pass in connection object when generating
......
......@@ -1256,9 +1256,6 @@ virDomainGetOSType(virDomainPtr domain)
}
}
if (str == NULL)
str = strdup("linux");
return (str);
}
......
......@@ -1018,6 +1018,10 @@ xenProxyDomainGetOSType(virDomainPtr domain)
xenProxyClose(domain->conn);
return(NULL);
}
if ((ans.len == sizeof(virProxyPacket)) && (ans.data.arg < 0)) {
return(NULL);
}
if (ans.len <= sizeof(virProxyPacket)) {
virProxyError(domain->conn, VIR_ERR_OPERATION_FAILED, __FUNCTION__);
return (NULL);
......
......@@ -683,6 +683,8 @@ xenStoreDomainGetOSType(virDomainPtr domain) {
str = virDomainGetVMInfo(domain, vm, "image/ostype");
free(vm);
}
if (str == NULL)
str = strdup("linux");
return (str);
}
......@@ -763,6 +765,9 @@ xenStoreDomainGetOSTypeID(virConnectPtr conn, int id) {
str = xs_read(conn->xshandle, 0, &query[0], &len);
free(vm);
}
if (str == NULL)
str = strdup("linux");
return (str);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册