]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/lxccontainer.c
c/r: check for criu images in the checkpoint directory
authorTycho Andersen <tycho.andersen@canonical.com>
Fri, 24 Apr 2015 20:46:08 +0000 (14:46 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 28 Apr 2015 06:24:39 +0000 (08:24 +0200)
commit85c50991da2a5b20756bdfbc5a147b14690855b7
treedf9be52b7529358a8c8e12a6b7cbe307977171e8
parent370f2e811c154109df7aea6ea1f9788768d0dd76
c/r: check for criu images in the checkpoint directory

CRIU can get confused if there are two dumps that are written to the same
directory, so we make some minimal effort to prevent people from doing this.
This is a better alternative than forcing liblxc to create the directory, since
it is mostly race free (and neither solution is bullet proof anyway if someone
rsyncs some bad images over the top of the good ones).

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c