1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193163

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
}