mirror of
git://github.com/lxc/lxc
synced 2025-09-01 23:30:11 +00:00
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 <christian.brauner@ubuntu.com>
This commit is contained in:
@@ -643,7 +643,9 @@ bool rootfs_is_blockdev(struct lxc_conf *conf)
|
|||||||
|
|
||||||
if (strcmp(q->name, "lvm") == 0 ||
|
if (strcmp(q->name, "lvm") == 0 ||
|
||||||
strcmp(q->name, "loop") == 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 true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user