]> 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)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 8 Oct 2021 05:24:20 +0000 (00:24 -0500)
commit7313f59b868025caa34453591e5d24cd75cd9076
treea819ad88b7233232a2e5d33e07eb61986c451a27
parent759bd6630be149492871ef851b7f10921fab2cf2
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.

(cherry picked from commit 3830659e99640001c09d26dfc0e1bbd77d919a62)
(cherry picked from commit a137f7997efc8a34da75a7643c8fade4be67e82c)
(cherry picked from commit 4583682ec14cc63f063b6769b7706af1891b0934)
18 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/libofw/Makefile
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/sparc64/loader/Makefile
stand/sparc64/loader/main.c
stand/userboot/userboot/Makefile
sys/cddl/boot/zfs/zfsimpl.h
sys/vm/vm.h