Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 380552 Details for
Bug 508496
app-emulation/libvirt-1.2.3 USE=lxc - Requested operation is not valid: System lacks NETNS support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Upstream fix in git
0001-LXC-Fix-return-code-evaulation-in-lxcCheckNetNsSuppo.patch (text/plain), 1.14 KB, created by
Christopher Byrne
on 2014-07-11 04:09:10 UTC
(
hide
)
Description:
Upstream fix in git
Filename:
MIME Type:
Creator:
Christopher Byrne
Created:
2014-07-11 04:09:10 UTC
Size:
1.14 KB
patch
obsolete
>From 21ec87f4f1a538f929c48ecb2bdbf48701022779 Mon Sep 17 00:00:00 2001 >From: Richard Weinberger <richard@nod.at> >Date: Tue, 8 Apr 2014 14:26:26 +0200 >Subject: [PATCH] LXC: Fix return code evaulation in lxcCheckNetNsSupport() > >Commit b9dd878f (util: make it easier to grab only regular command exit) >changed the call semantics of virCommandRun() and therefore of virRun() >too. But lxcCheckNetNsSupport() was not updated. >As consequence of this lxcCheckNetNsSupport always failed and broke LXC. > >Signed-off-by: Richard Weinberger <richard@nod.at> >--- > src/lxc/lxc_driver.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c >index 33ff011..942e139 100644 >--- a/src/lxc/lxc_driver.c >+++ b/src/lxc/lxc_driver.c >@@ -1475,8 +1475,7 @@ static int lxcCheckNetNsSupport(void) > const char *argv[] = {"ip", "link", "set", "lo", "netns", "-1", NULL}; > int ip_rc; > >- if (virRun(argv, &ip_rc) < 0 || >- !(WIFEXITED(ip_rc) && (WEXITSTATUS(ip_rc) != 255))) >+ if (virRun(argv, &ip_rc) < 0 || ip_rc == 255) > return 0; > > if (lxcContainerAvailable(LXC_CONTAINER_FEATURE_NET) < 0) >-- >1.8.5.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 508496
: 380552