From 16e8e24f9c7ddb3bfbaa268cd2398fe7d083d703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Matu=C5=A1ka?= Date: Sat, 20 Mar 2021 06:46:43 +0100 Subject: [PATCH] Allow setting bootfs property on pools with indirect vdevs The FreeBSD boot loader relies on the bootfs property and is capable of booting from removed (indirect) vdevs. Reviewed-by Eric van Gyzen Reviewed-by: Brian Behlendorf Signed-off-by: Martin Matuska Closes #11763 --- module/zfs/vdev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/module/zfs/vdev.c b/module/zfs/vdev.c index 93ac875ea..95fe9ec63 100644 --- a/module/zfs/vdev.c +++ b/module/zfs/vdev.c @@ -4824,10 +4824,8 @@ vdev_is_bootable(vdev_t *vd) if (!vd->vdev_ops->vdev_op_leaf) { const char *vdev_type = vd->vdev_ops->vdev_op_type; - if (strcmp(vdev_type, VDEV_TYPE_MISSING) == 0 || - strcmp(vdev_type, VDEV_TYPE_INDIRECT) == 0) { + if (strcmp(vdev_type, VDEV_TYPE_MISSING) == 0) return (B_FALSE); - } } for (int c = 0; c < vd->vdev_children; c++) {