]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxcContainerSetReadOnly: Refactor cleanup handling
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 Aug 2021 13:46:46 +0000 (15:46 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 9 Aug 2021 08:09:01 +0000 (10:09 +0200)
commit4346aec255617f869e6fc81397920c65b1025e17
treeaadf54b5818cb7ea5fb0424b30b20b5705e65e69
parent65b918432e3c2ce7ad0de2c70b409808e9032deb
lxcContainerSetReadOnly: Refactor cleanup handling

Turn 'mounts' into a proper GStrv after sorting so that automatic
cleanup can be used and shuffle around the cleanup steps so that jumps
can be avoided in favor of direct return of error code.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/lxc/lxc_container.c