]> git.proxmox.com Git - mirror_lxc.git/commit
API support for container snapshots (v2)
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 6 Sep 2013 23:07:47 +0000 (18:07 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 10 Sep 2013 22:19:20 +0000 (18:19 -0400)
commitf5dd1d532a76a1b57cf341db821eae85ea1118c5
treed508f88bc6f8f697fac5bb6d47d34ef5982f4c27
parent98f5f7e2c54fc003f81b2164adf3c7bd8a104556
API support for container snapshots (v2)

The api allows for creating, listing, and restoring of container
snapshots.  Snapshots are created as snapshot clones of the
original container - i.e. btrfs and lvm will be done as snapshot,
a directory-backed container will have overlayfs snapshots.  A
restore is a copy-clone, using the same backing store as the
original container had.

Changelog:

 . remove lxcapi_snap_open, which wasn't defined anyway.
 . rename get_comment to get_commentpath
 . if no newname is specified at restore, use c->name (as we meant to)
   rather than segving.
 . when choosing a snapshot index, use the correct path to check for.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxccontainer.c
src/lxc/lxccontainer.h
src/tests/Makefile.am
src/tests/snapshot.c [new file with mode: 0644]