]> git.ipfire.org Git - thirdparty/lxc.git/commit
snapshot: fix overlayfs restore
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 4 Mar 2014 20:54:04 +0000 (14:54 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 4 Mar 2014 22:40:53 +0000 (17:40 -0500)
commitde269ee8dec1cf2d882de385f8dd6591e97121e2
tree02c713449f1274798b126390d15cb956f0355e78
parent7b5f650017f36b03ad528e56a5d503505737862f
snapshot: fix overlayfs restore

And add a testcase to catch regressions.

Without this patch, restoring a snapshot of an overlayfs based
container fails, because we do not pass in LXC_CLONE_SNAPSHOT,
and overlayfs does not support clone without snapshot.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxccontainer.c
src/tests/snapshot.c