]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Skip rootfs pinning for ZFS roots.
authorJeff Cook <jeff@jeffcook.io>
Sun, 9 May 2021 02:46:42 +0000 (20:46 -0600)
committerJeff Cook <jeff@jeffcook.io>
Sun, 9 May 2021 03:18:54 +0000 (21:18 -0600)
Signed-off-by: Jeff Cook <jeff@jeffcook.io>
src/lxc/conf.c

index f38894697063e08f628a37edc27f04d99fe89606..dd5b043880be1e04edb90a584e06cb54692fdd78 100644 (file)
@@ -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") ||