[lxc-devel] [PATCH 2/2] api_clone: don't remove storage if we haven't created it

2013-06-21 Thread Serge Hallyn
In the best case we'll get errors about failing to remove it. In the worst case we'll be trying to delete the original container's rootfs. Reported-by: zoolook Signed-off-by: Serge Hallyn --- src/lxc/lxccontainer.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/

[lxc-devel] [PATCH 1/2] Accept more word delimiters when updating hooks

2013-06-21 Thread Serge Hallyn
When updating container names in hook files during a container clone, we substitute the new container name for the old any time the old name shows up as a separate word. This patch adds the four characters '.,_-' as additional delimiters. Signed-off-by: Serge Hallyn --- src/lxc/lxccontainer.c |

[lxc-devel] Possible bug in lxc-netstat w/ patch; feature patch

2013-06-21 Thread Andrew Gilbert
Hi, I think I've discovered a bug in lxc-netstat when trying to have it run netstat with the '-n' option. I've attached a patch for this below (patch 1). I've also attached a patch that tries to Do The Right Thing if someone uses '-n' without the '--' before it (patch 2). I'd be happy to resend