From: Christian Brauner Date: Tue, 25 Jul 2017 15:06:53 +0000 (+0200) Subject: storage: add rbd, zfs as block devices X-Git-Tag: lxc-2.1.0~32^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f83dd99ebe5ad48ef4e5cf9d066f56cc741f85fc;p=thirdparty%2Flxc.git storage: add rbd, zfs as block devices When users create an unprivileged container as root they can use block devices. However, we then need to perform a specific mount protocol in start.c which requires that these block devices are correctly reported as block devices. So let's do that. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/bdev/bdev.c b/src/lxc/bdev/bdev.c index f4fea6b2e..bff6d6c7d 100644 --- a/src/lxc/bdev/bdev.c +++ b/src/lxc/bdev/bdev.c @@ -643,7 +643,9 @@ bool rootfs_is_blockdev(struct lxc_conf *conf) if (strcmp(q->name, "lvm") == 0 || strcmp(q->name, "loop") == 0 || - strcmp(q->name, "nbd") == 0) + strcmp(q->name, "nbd") == 0 || + strcmp(q->name, "rbd") == 0 || + strcmp(q->name, "zfs") == 0) return true; return false;