mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
Disable inactive domain drivers on old XenD
This commit is contained in:
parent
72e8284c1b
commit
ec329ce910
@ -1,3 +1,9 @@
|
|||||||
|
Thu Jan 18 13:37:02 EST 2007 Daniel Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/xend_internal.c: Tweak some of the new inactive domain methods
|
||||||
|
to only run when XenD is >= 3.0.4, so it falls back correctly to
|
||||||
|
the src/xm_internal.c driver.
|
||||||
|
|
||||||
Wed Jan 10 16:20:02 CET 2007 Daniel Veillard <veillard@redhat.com>
|
Wed Jan 10 16:20:02 CET 2007 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* docs/libvirt.rng: udated for the upcoming KVM and QEmu support
|
* docs/libvirt.rng: udated for the upcoming KVM and QEmu support
|
||||||
|
@ -3127,6 +3127,8 @@ virDomainPtr xenDaemonDomainDefineXML(virConnectPtr conn, const char *xmlDesc) {
|
|||||||
virXendError(conn, VIR_ERR_INVALID_ARG, __FUNCTION__);
|
virXendError(conn, VIR_ERR_INVALID_ARG, __FUNCTION__);
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
if (conn->xendConfigVersion < 3)
|
||||||
|
return(NULL);
|
||||||
|
|
||||||
sexpr = virDomainParseXMLDesc(xmlDesc, &name, conn->xendConfigVersion);
|
sexpr = virDomainParseXMLDesc(xmlDesc, &name, conn->xendConfigVersion);
|
||||||
if ((sexpr == NULL) || (name == NULL)) {
|
if ((sexpr == NULL) || (name == NULL)) {
|
||||||
@ -3196,6 +3198,9 @@ xenDaemonNumOfDefinedDomains(virConnectPtr conn)
|
|||||||
int ret = -1;
|
int ret = -1;
|
||||||
struct sexpr *_for_i, *node;
|
struct sexpr *_for_i, *node;
|
||||||
|
|
||||||
|
if (conn->xendConfigVersion < 3)
|
||||||
|
return(-1);
|
||||||
|
|
||||||
root = sexpr_get(conn, "/xend/domain?state=halted");
|
root = sexpr_get(conn, "/xend/domain?state=halted");
|
||||||
if (root == NULL)
|
if (root == NULL)
|
||||||
goto error;
|
goto error;
|
||||||
@ -3220,6 +3225,9 @@ int xenDaemonListDefinedDomains(virConnectPtr conn, const char **names, int maxn
|
|||||||
int ret = -1;
|
int ret = -1;
|
||||||
struct sexpr *_for_i, *node;
|
struct sexpr *_for_i, *node;
|
||||||
|
|
||||||
|
if (conn->xendConfigVersion < 3)
|
||||||
|
return(-1);
|
||||||
|
|
||||||
if ((names == NULL) || (maxnames <= 0))
|
if ((names == NULL) || (maxnames <= 0))
|
||||||
goto error;
|
goto error;
|
||||||
root = sexpr_get(conn, "/xend/domain?state=halted");
|
root = sexpr_get(conn, "/xend/domain?state=halted");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user