]> git.ipfire.org Git - thirdparty/lxc.git/commit
Several backing store improvements
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 26 Apr 2013 16:00:28 +0000 (18:00 +0200)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 30 Apr 2013 14:14:26 +0000 (09:14 -0500)
commitca52dcb55961d75e0163f237c92d225964c786bd
treef19b90729c6bc60be2ccf5c624115e37dc59fe48
parent3baa76fe36bd2b59645a952c3a47a960090c38d2
Several backing store improvements

allow copy clones from other bdevs

for lvm and zfs, as we don't yet support passing options, only default
VG of 'lxc' and default zfsroot of 'tank' are supported when converting
another backing store type.

refuse deletion of container which has lvm or zfs snapshots.
Note that since a zfs clone must be made from a zfs snapshot,
which is made from the original zfs fs, even after we
lxc-destroy the snapshotted container we still must manually
remove the snapshot.  This can be handled automatically, by
looking for snapshots where c1 is the original, c2 is the clone,
tank/c2 no longer exists, but tank/c1@c2 does.  We can then
remove tank/c1@c2 and feel free to remove tank/c1.  This patch
does NOT do that yet.

Make sure not to return when we're a forked child.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/bdev.c
src/lxc/bdev.h
src/lxc/lxc-destroy.in