[lxc-devel] [PATCH 0/2] Remove ephemeral containers from lxc_snapshots
Christian Brauner
christianvanbrauner at gmail.com
Tue Sep 15 19:24:03 UTC 2015
This patch makes sure that ephemeral clone-snapshot containers get deleted from
the lxc_snapshots file of the container which serves as their base. This is
achieved by making mod_all_rdeps() in lxccontainer.c public and putting an
extern declaration of the function in start.c. To avoid any races we include
lxclock.h into start.c and lock the container before we call mod_all_rdeps().
lxclock.h also guarantess the needed acces to struct lxc_container which
mod_all_rdeps() requires as it contains an opaque type struct lxc_container.
With this we have the minimal necessary changes to rewrite the basic
functionality of lxc-start-ephemeral in C.
Christian Brauner (2):
Make mod_all_rdeps() public It will now also be called from
start.c
Remove ephemeral containers from lxc_snapshots
src/lxc/lxccontainer.c | 2 +-
src/lxc/start.c | 15 +++++++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
--
2.5.2
More information about the lxc-devel
mailing list