Re: [lxc-devel] segfault with insufficient network config

2010-07-22 Thread Ferenc Wagner
Daniel Lezcano writes: > On 07/22/2010 09:44 PM, Ferenc Wagner wrote: > >> # lxc-execute --name net -s lxc.network.type=phys -s lxc.network.link=eth0 >> bash >> lxc-execute: failed to move 'eth0' to the container : Message too long >> >> It might as well have some sense, but I definitely don't g

Re: [lxc-devel] segfault with insufficient network config

2010-07-22 Thread Daniel Lezcano
On 07/22/2010 09:44 PM, Ferenc Wagner wrote: > Hi, > > $ lxc-execute --name net -s lxc.network.type=phys bash > Segmentation fault (core dumped) > > The problem is that the netdev structure is mostly uninitialized (only > its type is set to LXC_NET_PHYS), so if_nametoindex() is invoked with a > NUL

[lxc-devel] segfault with insufficient network config

2010-07-22 Thread Ferenc Wagner
Hi, $ lxc-execute --name net -s lxc.network.type=phys bash Segmentation fault (core dumped) The problem is that the netdev structure is mostly uninitialized (only its type is set to LXC_NET_PHYS), so if_nametoindex() is invoked with a NULL argument: static int instanciate_phys(struct lxc_netdev

[lxc-devel] [GIT] lxc branch, master, updated. fb6d9b2f40efabe612b5eea4843cbddf5ce170cc

2010-07-22 Thread Daniel Lezcano
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "lxc". The branch, master has been updated via fb6d9b2f40efabe612b5eea4843cbddf5ce170cc (commit) via bac8958311722c6b5e6dd396

[lxc-devel] [patch -lxc 1/2] fix inverted network interface creation

2010-07-22 Thread Daniel Lezcano
From: Daniel Lezcano The list is 'lifo', so when we create the network interfaces, we do this in the reverse order of the expected one. That is confusing. Signed-off-by: Daniel Lezcano --- src/lxc/confile.c |4 ++-- src/lxc/list.h|5 + 2 files changed, 7 insertions(+), 2 deleti

[lxc-devel] [patch -lxc 2/2] keep the name of the physical interface

2010-07-22 Thread Daniel Lezcano
From: Daniel Lezcano When the interface used in the container is a physical interface from the host, we keep the initial name. Signed-off-by: Daniel Lezcano Reported-by: Sabdar --- src/lxc/conf.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/lxc/conf.c b/src/l