aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorMartin Matuška <[email protected]>2021-03-20 06:46:43 +0100
committerGitHub <[email protected]>2021-03-19 22:46:43 -0700
commitcd5b81281804bf1200abf060a0bc63872fd55fd3 (patch)
tree5c4e235edb3e0587166dab099eae53521dcd0c60 /module
parent0ab84bff55d0ec93436ae5530175b45c56a9ab4f (diff)
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 <[email protected]> Signed-off-by: Martin Matuska <[email protected]> Closes #11763
Diffstat (limited to 'module')
-rw-r--r--module/zfs/vdev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/module/zfs/vdev.c b/module/zfs/vdev.c
index ad4f3efb8..c536a1c6c 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++) {