]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r329725, r329831
authorkevans <kevans@FreeBSD.org>
Fri, 6 Apr 2018 18:40:24 +0000 (18:40 +0000)
committerkevans <kevans@FreeBSD.org>
Fri, 6 Apr 2018 18:40:24 +0000 (18:40 +0000)
commitcd4f7cbee3448d17b1db83a78bffe4ad5a0b41b5
tree8a1f9aeaa847fe5c78a564f5d93b88bdea97ae97
parent883d5d5c89ca42eba284721201080614b0cc7554
MFC r329725, r329831

r329725:
Consolidate three copies of ZFS commands into a central location.

There's no reason to have multiple copies of lszfs and
reloadbe. Consolidate them into one location. Also ldi_get_size is the
same everywhere (except sparc64). Make it the same everywhere as the
common definition is more general and will work on spar64.

r329831:
Fix userboot w/ ZFS after r329725

r329725 cleaned up ZFS commands duplicated in multiple places, but userboot
was not setting HAVE_ZFS when MK_ZFS != "no". This resulted in a failure to
boot (as seen in PR 226118) in bhyve, with the following message:

/boot/userboot.so: Undefined symbol "ldi_get_size"
stand/common/zfs_cmd.c [new file with mode: 0644]
stand/efi/libefi/efizfs.c
stand/efi/loader/Makefile
stand/efi/loader/main.c
stand/i386/loader/main.c
stand/loader.mk
stand/sparc64/loader/Makefile
stand/sparc64/loader/main.c
stand/userboot/userboot/Makefile
stand/userboot/userboot/main.c