]> git.proxmox.com Git - mirror_lxc.git/commit
conf: introduce lxc.rootfs.managed
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 27 Jun 2018 09:37:57 +0000 (11:37 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 31 Jul 2018 20:09:34 +0000 (22:09 +0200)
commit6e54330c46bdfedaedbf4b677e557d550bdcb276
tree2cea54d234cd5782ffa99f57e578b7575d90bfa5
parenta3cf04da4db7c4e7b8aae5a2e51158da7bb74f81
conf: introduce lxc.rootfs.managed

This introduces a new config key lxc.rootfs.managed which can be used to
indicate whether this LXC instance is managing the container storage. If LXC is
not managing the storage then LXC will not modify the container storage.
For example, an API call to c->destroy(c) will then run any destroy hooks but
will not destroy the actual rootfs (Unless, of course, the hook does so behind
LXC's back.).

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
CC: Wolfgang Bumiller <w.bumiller@proxmox.com>
CC: Stéphane Graber <stgraber@ubuntu.com>
CC: Serge Hallyn <serge@hallyn.com>
CC: 2xsec <dh48.jeong@samsung.com>
src/lxc/conf.c
src/lxc/conf.h
src/lxc/confile.c
src/lxc/confile_utils.c
src/lxc/confile_utils.h
src/lxc/lxccontainer.c