]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
storage: add rbd, zfs as block devices
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 25 Jul 2017 15:06:53 +0000 (17:06 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 31 Jul 2017 21:34:17 +0000 (23:34 +0200)
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 <christian.brauner@ubuntu.com>
src/lxc/bdev/bdev.c

index f4fea6b2ef02c3eba4a713ccbcad7cc73df69475..bff6d6c7dec14242b7ea5d192cd390698cac1971 100644 (file)
@@ -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;