]> git.ipfire.org Git - thirdparty/lxc.git/commit
conf: fix ephemeral copies 4344/head
authorChristian Brauner <brauner@kernel.org>
Wed, 29 Nov 2023 14:57:04 +0000 (15:57 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 29 Nov 2023 15:03:52 +0000 (16:03 +0100)
commit0e932812ae2ac4dec58e413c0d95d581385b9756
tree6711720293b0a3a6f319e565496a476c688a585d
parentb425c782d4f088bd9e05a7ef7d37dd36e795e6a3
conf: fix ephemeral copies

Don't rely on rootfs->bdev_type because that may be NULL. Use storage->type
instead which can't be NULL.

Co-Developed-by: Mathias Gibbens <gibmat@debian.org>
Signed-off-by: Mathias Gibbens <gibmat@debian.org>
Reported-by: Mathias Gibbens <gibmat@debian.org>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c
src/lxc/conf.h
src/lxc/confile.c
src/lxc/storage/storage.c
src/lxc/storage/storage.h