freebsd-dev/sys/boot/userboot
Peter Grehan cf087c12c2 ZFS boot support for bhyveload.
Modelled after the i386 zfsloader. However, with no
2nd stage zfsboot to search for a bootable dataset,
attempt a ZFS boot if there is more than one ZFS
dataset found during the disk probe.

sys/boot/userboot/zfs
 - build the ZFS boot library

sys/boot/userboot/userboot/
 conf.c
  - Add the ZFS pool and filesystem tables
 devicename.c
  - correctly format ZFS devices
 main.c
  - increase the size of the libstand malloc pool
  to account for the increased usage from ZFS buffers
  - probe for a ZFS dataset, and if one is
  found, attempt to boot from it.

usr.sbin/bhyveload/bhyveload.c
 - allow multiple invocations of the '-d' option
 to specify multiple disks e.g. a raidz set.
 Up to 32 disks are supported.

Tested with various combinations of GPT, MBR, single
and multiple disks, RAID-Z, mirrors.

Reviewed by:	neel
Discussed with:	avg
Tested by:	Michael Dexter and others
MFC after:	3 weeks
2014-02-22 07:18:06 +00:00
..
ficl For libstand and sys/boot, split off gcc-only flags into CFLAGS.gcc. 2013-12-26 11:32:39 +00:00
libstand For libstand and sys/boot, split off gcc-only flags into CFLAGS.gcc. 2013-12-26 11:32:39 +00:00
test Use MK_SSP=no after including bsd.own.mk to disable SSP instead of user-knob 2013-09-29 20:20:17 +00:00
userboot ZFS boot support for bhyveload. 2014-02-22 07:18:06 +00:00
zfs ZFS boot support for bhyveload. 2014-02-22 07:18:06 +00:00
Makefile ZFS boot support for bhyveload. 2014-02-22 07:18:06 +00:00
userboot.h Add a callback function to userboot.so to fetch a list of environment 2012-11-12 22:38:54 +00:00