Allow the bootfs property to be set for raidz pools on FreeBSD.

Reviewed by:	pjd
This commit is contained in:
Doug Rabson 2009-05-31 11:59:32 +00:00
parent 705fe7ce35
commit 8be608b58c

View File

@ -2392,13 +2392,23 @@ vdev_set_state(vdev_t *vd, boolean_t isopen, vdev_state_t state, vdev_aux_t aux)
/*
* Check the vdev configuration to ensure that it's capable of supporting
* a root pool. Currently, we do not support RAID-Z or partial configuration.
* In addition, only a single top-level vdev is allowed and none of the leaves
* can be wholedisks.
* a root pool.
*
* On Solaris, we do not support RAID-Z or partial configuration. In
* addition, only a single top-level vdev is allowed and none of the
* leaves can be wholedisks.
*
* For FreeBSD, we can boot from any configuration. There is a
* limitation that the boot filesystem must be either uncompressed or
* compresses with lzjb compression but I'm not sure how to enforce
* that here.
*/
boolean_t
vdev_is_bootable(vdev_t *vd)
{
#ifdef __FreeBSD_version
return (B_TRUE);
#else
int c;
if (!vd->vdev_ops->vdev_op_leaf) {
@ -2420,4 +2430,5 @@ vdev_is_bootable(vdev_t *vd)
return (B_FALSE);
}
return (B_TRUE);
#endif
}