]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxcapi-snapshot: don't snapshot directory-backed containers
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 10 Feb 2014 20:19:42 +0000 (14:19 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 11 Feb 2014 02:20:12 +0000 (21:20 -0500)
commit8c39f7a4791cd24625b0f12d3ca279400b36bf84
treeffe06a56084a982ca57ca6a9580bae382316ad0c
parentbbd23aa0bbfebcced16654b3920d73173f0c622c
lxcapi-snapshot: don't snapshot directory-backed containers

Instead force a copy clone.  Else if the user makes a change
to the original container, the snapshot will be affected.
The user should first create a snapshot clone, then use
and snapshot that clone while leaving the original container
untouched.

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