]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: create single zfs nextboot implementation
authorToomas Soome <tsoome@FreeBSD.org>
Sat, 20 Jun 2020 06:23:31 +0000 (06:23 +0000)
committerToomas Soome <tsoome@FreeBSD.org>
Sat, 20 Jun 2020 06:23:31 +0000 (06:23 +0000)
commit3830659e99640001c09d26dfc0e1bbd77d919a62
treec05db1c928b5f34c3b3027ccc6fef6cc7949423b
parent830efe55395a27f0a72812b5a028e323ee3981a6
loader: create single zfs nextboot implementation

We should have nextboot feature implemented in libsa zfs code.
To get there, I have created zfs_nextboot() implementation based on
two sources, our current simple textual string based approach with added
structured boot label PAD structure from OpenZFS.

Secondly, all nvlist details are moved to separate source file and
restructured a bit. This is done to provide base support to add nvlist
add/update feature in followup updates.

And finally, the zfsboot/gptzfsboot disk access functions are swapped to use
libi386 and libsa.

Sponsored by: Netflix, Klara Inc.
Differential Revision: https://reviews.freebsd.org/D25324
14 files changed:
stand/efi/libefi/Makefile
stand/efi/loader/main.c
stand/i386/gptzfsboot/Makefile
stand/i386/libi386/Makefile
stand/i386/zfsboot/Makefile
stand/i386/zfsboot/zfsboot.c
stand/libsa/zfs/Makefile.inc
stand/libsa/zfs/libzfs.h
stand/libsa/zfs/nvlist.c [new file with mode: 0644]
stand/libsa/zfs/zfs.c
stand/libsa/zfs/zfsimpl.c
stand/loader.mk
stand/userboot/userboot/Makefile
sys/cddl/boot/zfs/zfsimpl.h