]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
Remove ephemeral containers from lxc_snapshots
authorChristian Brauner <christianvanbrauner@gmail.com>
Tue, 15 Sep 2015 19:24:05 +0000 (21:24 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 21 Sep 2015 15:47:41 +0000 (11:47 -0400)
commitf01f7975c1bec35dea8e1d7412c3eed95dd4812c
treeb47c5706597d19b513d6d24a76b97a36e98d3905
parentd825fff3cae40b89c26d838847021239e89df922
Remove ephemeral containers from lxc_snapshots

On shutdown ephemeral containers will be destroyed. We use mod_all_rdeps() from
lxccontainer.c to update the lxc_snapshots file of the original container. We
also include lxclock.h to lock the container when mod_all_rdeps() is called to
avoid races.

Signed-off-by: Christian Brauner <christianvanbrauner@gmail.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/start.c