forked from pool/libvirt
Update to libvirt 0.7.1
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=6
This commit is contained in:
@@ -2,7 +2,7 @@ Index: src/lxc_container.c
|
||||
===================================================================
|
||||
--- src/lxc_container.c.orig
|
||||
+++ src/lxc_container.c
|
||||
@@ -791,6 +791,9 @@ int lxcContainerStart(virDomainDefPtr de
|
||||
@@ -796,6 +796,9 @@ int lxcContainerStart(virDomainDefPtr de
|
||||
lxc_child_argv_t args = { def, nveths, veths, control, ttyPath };
|
||||
|
||||
/* allocate a stack for the container */
|
||||
@@ -12,7 +12,7 @@ Index: src/lxc_container.c
|
||||
if (VIR_ALLOC_N(stack, stacksize) < 0) {
|
||||
virReportOOMError(NULL);
|
||||
return -1;
|
||||
@@ -805,7 +808,11 @@ int lxcContainerStart(virDomainDefPtr de
|
||||
@@ -810,7 +813,11 @@ int lxcContainerStart(virDomainDefPtr de
|
||||
if (def->nets != NULL)
|
||||
flags |= CLONE_NEWNET;
|
||||
|
||||
@@ -24,7 +24,7 @@ Index: src/lxc_container.c
|
||||
VIR_FREE(stack);
|
||||
DEBUG("clone() returned, %d", pid);
|
||||
|
||||
@@ -831,6 +838,7 @@ int lxcContainerAvailable(int features)
|
||||
@@ -836,6 +843,7 @@ int lxcContainerAvailable(int features)
|
||||
char *childStack;
|
||||
char *stack;
|
||||
int childStatus;
|
||||
@@ -32,7 +32,7 @@ Index: src/lxc_container.c
|
||||
|
||||
if (features & LXC_CONTAINER_FEATURE_USER)
|
||||
flags |= CLONE_NEWUSER;
|
||||
@@ -838,14 +846,21 @@ int lxcContainerAvailable(int features)
|
||||
@@ -843,14 +851,21 @@ int lxcContainerAvailable(int features)
|
||||
if (features & LXC_CONTAINER_FEATURE_NET)
|
||||
flags |= CLONE_NEWNET;
|
||||
|
||||
|
Reference in New Issue
Block a user