[libvirt] [PATCH v4 3/3] lxc: Fix container cleanup for LXCProcessStart

Daniel P. Berrange berrange at redhat.com
Fri Feb 13 09:17:29 UTC 2015


On Thu, Feb 12, 2015 at 03:48:12PM -0500, John Ferlan wrote:
> From: Luyao Huang <lhuang at redhat.com>
> 
> Jumping to the cleanup label prior to starting the container failed to
> properly clean everything up that is handled by the virLXCProcessCleanup
> which is called if virLXCProcessStop is called on failure after the
> container properly starts. Most importantly is prior to this patch none
> of the stop/release hooks, host device reattachment, and network cleanup
> (that is reverse of virLXCProcessSetupInterfaces).
> 
> Signed-off-by: Luyao Huang <lhuang at redhat.com>
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
>  src/lxc/lxc_process.c | 78 ++++++++++++++++++++++-----------------------------
>  1 file changed, 33 insertions(+), 45 deletions(-)

ACK


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list