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
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
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
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