From cd5b81281804bf1200abf060a0bc63872fd55fd3 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 ad4f3efb87..c536a1c6cd 100644 --- a/module/zfs/vdev.c +++ b/module/zfs/vdev.c @@ -5105,10 +5105,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++) {