提交 483f6d69 编写于 作者: D Daniel P. Berrange

Make network APIs go via remote driver. Autospawn per-user daemon

上级 6bdad268
Mon Jul 2 09:35:00 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* src/qemu_driver.c: Change 'qemu' to 'QEMU' to get compatability
with previous releases reporting of driver type. Allow QEMU to
handle qemu:///session for root users too. Fix network lookup
functions to use networkPrivateData instead of privateData
* src/remote_internal.c: Add auto-spawn of daemons for networking.
Make network activate for Xen / Test drivers. Make the network
functions use networkPrivateData instead of privateData
Fri Jun 29 15:46:34 CEST 2007 Daniel Veillard <veillard@redhat.com>
* src/virsh.c: applied patch from Masayuki Sunou to remove leaks
......
......@@ -1495,7 +1495,8 @@ static virDrvOpenStatus qemudOpen(virConnectPtr conn,
if (strcmp(name, "qemu:///session"))
return VIR_DRV_OPEN_DECLINED;
} else {
if (strcmp(name, "qemu:///system"))
if (strcmp(name, "qemu:///system") &&
strcmp(name, "qemu:///session"))
return VIR_DRV_OPEN_DECLINED;
}
......@@ -1513,7 +1514,7 @@ static int qemudClose(virConnectPtr conn) {
}
static const char *qemudGetType(virConnectPtr conn ATTRIBUTE_UNUSED) {
return "qemu";
return "QEMU";
}
static int qemudGetMaxVCPUs(virConnectPtr conn ATTRIBUTE_UNUSED,
......@@ -2174,7 +2175,7 @@ static int qemudDomainSetAutostart(virDomainPtr dom,
static virNetworkPtr qemudNetworkLookupByUUID(virConnectPtr conn ATTRIBUTE_UNUSED,
const unsigned char *uuid) {
struct qemud_driver *driver = (struct qemud_driver *)conn->privateData;
struct qemud_driver *driver = (struct qemud_driver *)conn->networkPrivateData;
struct qemud_network *network = qemudFindNetworkByUUID(driver, uuid);
virNetworkPtr net;
......@@ -2192,7 +2193,7 @@ static virNetworkPtr qemudNetworkLookupByUUID(virConnectPtr conn ATTRIBUTE_UNUSE
}
static virNetworkPtr qemudNetworkLookupByName(virConnectPtr conn ATTRIBUTE_UNUSED,
const char *name) {
struct qemud_driver *driver = (struct qemud_driver *)conn->privateData;
struct qemud_driver *driver = (struct qemud_driver *)conn->networkPrivateData;
struct qemud_network *network = qemudFindNetworkByName(driver, name);
virNetworkPtr net;
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册