Unverified Commit 1910c228 by Christian Brauner Committed by GitHub

Merge pull request #3831 from sjuxax/zfs-fix

Skip rootfs pinning for ZFS roots.
parents 5b508c37 0dd4788a
......@@ -544,10 +544,12 @@ int lxc_rootfs_init(struct lxc_conf *conf, bool userns)
}
if (rootfs->path) {
if (rootfs->bdev_type &&
(strequal(rootfs->bdev_type, "overlay") ||
strequal(rootfs->bdev_type, "overlayfs")))
return log_trace_errno(0, EINVAL, "Not pinning on stacking filesystem");
if (rootfs->bdev_type) {
if (strequal(rootfs->bdev_type, "overlay") || strequal(rootfs->bdev_type, "overlayfs"))
return log_trace_errno(0, EINVAL, "Not pinning on stacking filesystem");
if (strequal(rootfs->bdev_type, "zfs"))
return log_trace_errno(0, EINVAL, "Not pinning on ZFS filesystem");
}
dfd_path = open_at(-EBADF, rootfs->path, PROTECT_OPATH_FILE, 0, 0);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment