提交 86247f2c 编写于 作者: D Daniel Veillard

* src/xen_internal.c: converting to handle the new incompatible

  hypercalls while still able to detect older versions, lot of
  work, seems okay, there is just one function not yet converted
* src/xs_internal.c: dropping virConnectCheckStoreID()
Daniel
上级 6a0c75a7
Sat Sep 2 22:28:18 CEST 2006 Daniel Veillard <veillard@redhat.com>
* src/xen_internal.c: converting to handle the new incompatible
hypercalls while still able to detect older versions, lot of
work, seems okay, there is just one function not yet converted
* src/xs_internal.c: dropping virConnectCheckStoreID()
Wed Aug 30 09:34:45 EDT 2006 Daniel Berrange <berrange@redhat.com> Wed Aug 30 09:34:45 EDT 2006 Daniel Berrange <berrange@redhat.com>
* src/virsh.c: Added --all & --inactive flags to list command to control * src/virsh.c: Added --all & --inactive flags to list command to control
......
此差异已折叠。
...@@ -256,6 +256,7 @@ virDomainGetVMInfo(virDomainPtr domain, const char *vm, const char *name) ...@@ -256,6 +256,7 @@ virDomainGetVMInfo(virDomainPtr domain, const char *vm, const char *name)
return (ret); return (ret);
} }
#if 0
/** /**
* virConnectCheckStoreID: * virConnectCheckStoreID:
* @conn: pointer to the hypervisor connection * @conn: pointer to the hypervisor connection
...@@ -278,6 +279,7 @@ virConnectCheckStoreID(virConnectPtr conn, int id) ...@@ -278,6 +279,7 @@ virConnectCheckStoreID(virConnectPtr conn, int id)
} }
return (0); return (0);
} }
#endif
#endif /* ! PROXY */ #endif /* ! PROXY */
/************************************************************************ /************************************************************************
...@@ -521,8 +523,10 @@ xenStoreListDomains(virConnectPtr conn, int *ids, int maxids) ...@@ -521,8 +523,10 @@ xenStoreListDomains(virConnectPtr conn, int *ids, int maxids)
ret = -1; ret = -1;
break; break;
} }
#if 0
if (virConnectCheckStoreID(conn, (int) id) < 0) if (virConnectCheckStoreID(conn, (int) id) < 0)
continue; continue;
#endif
ids[ret++] = (int) id; ids[ret++] = (int) id;
} }
return(ret); return(ret);
...@@ -564,8 +568,10 @@ xenStoreDomainLookupByName(virConnectPtr conn, const char *name) ...@@ -564,8 +568,10 @@ xenStoreDomainLookupByName(virConnectPtr conn, const char *name)
if ((endptr == idlist[i]) || (*endptr != 0)) { if ((endptr == idlist[i]) || (*endptr != 0)) {
goto done; goto done;
} }
#if 0
if (virConnectCheckStoreID(conn, (int) id) < 0) if (virConnectCheckStoreID(conn, (int) id) < 0)
continue; continue;
#endif
snprintf(prop, 199, "/local/domain/%s/name", idlist[i]); snprintf(prop, 199, "/local/domain/%s/name", idlist[i]);
prop[199] = 0; prop[199] = 0;
tmp = xs_read(conn->xshandle, 0, prop, &len); tmp = xs_read(conn->xshandle, 0, prop, &len);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册