From 4bc6ecbfb77a0b5f8c7acd2159bea6275c4ae842 Mon Sep 17 00:00:00 2001 From: Jeff Cook Date: Sat, 8 May 2021 20:46:42 -0600 Subject: [PATCH] Skip rootfs pinning for ZFS roots. Signed-off-by: Jeff Cook --- src/lxc/conf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index f38894697..dd5b04388 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -543,6 +543,11 @@ int lxc_rootfs_init(struct lxc_conf *conf, bool userns) return syserror_set(-EINVAL, "Idmapped rootfs currently only supports the \"dir\" storage driver"); } + if (rootfs->bdev_type && strequal(rootfs->bdev_type, "zfs")) { + TRACE("Not pinning because container uses ZFS"); + goto out; + } + if (rootfs->path) { if (rootfs->bdev_type && (strequal(rootfs->bdev_type, "overlay") || -- 2.47.2