Re: [lxc-devel] [PATCH] mod_rdep(): Write path and name of clone to file

2015-08-27 Thread Christian Brauner
Hi, this is actually the old version. I implemented it differently using mmap() + + memmem() + memmove() + munmap() + ftruncate() to avoid using a temporary file. It's present as a PR on Github. Would be nice if you could say something about it too: https://github.com/lxc/lxc/pull/641 Christian

[lxc-devel] [PATCH] mod_rdep(): Write path and name of clone to file

2015-08-27 Thread Christian Brauner
If we currently create clone-snapshots via lxc-clone only the plain total number of the containers it serves as a base-container is written to the file lxc-snapshots. This commit modifies mod_rdep() so it will store the paths and names to the containers that are clone-snapshots (similar to the

Re: [lxc-devel] [PATCH] mod_rdep(): Write path and name of clone to file

2015-08-27 Thread Christian Brauner
This is the new version of my modifications to mod_rdep(). It's part of a series of commits present as a PR on Github which also includes the changes necessary to adapt lxc-destroy: https://github.com/lxc/lxc/pull/641 Christian Brauner (1): mod_rdep(): Write path and name of clone to file

[lxc-devel] [PATCH] mod_rdep(): Write path and name of clone to file

2015-08-13 Thread Christian Brauner
This is rather a first-pass suggestion than a full commit to discuss: The idea: - - If a container has clone-snapshots created by lxc-clone -n NAME -N NEWNAME -s then even the new version lxc-destroy (see patch on github) cannot remove the container because the original