From: Jeff Cook Date: Sun, 9 May 2021 02:46:42 +0000 (-0600) Subject: Skip rootfs pinning for ZFS roots. X-Git-Tag: lxc-5.0.0~175^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bc6ecbfb77a0b5f8c7acd2159bea6275c4ae842;p=thirdparty%2Flxc.git Skip rootfs pinning for ZFS roots. Signed-off-by: Jeff Cook --- 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") ||