]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zfs label bootenv should store data as nvlist
authorToomas Soome <tsoome@me.com>
Tue, 15 Sep 2020 22:42:27 +0000 (01:42 +0300)
committerGitHub <noreply@github.com>
Tue, 15 Sep 2020 22:42:27 +0000 (15:42 -0700)
commit1db9e6e4e4c355a89e52f156f63843d01f84866e
tree1bfd632036c2caf3a2c6e0089635073ae6be5bde
parent37325e47499ccdb4eeabfaa61d06a4075390b960
zfs label bootenv should store data as nvlist

nvlist does allow us to support different data types and systems.

To encapsulate user data to/from nvlist, the libzfsbootenv library is
provided.

Reviewed-by: Arvind Sankar <nivedita@alum.mit.edu>
Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Paul Dagnelie <pcd@delphix.com>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Signed-off-by: Toomas Soome <tsoome@me.com>
Closes #10774
29 files changed:
configure.ac
include/Makefile.am
include/libzfs.h
include/libzfs_core.h
include/libzfsbootenv.h [new file with mode: 0644]
include/os/freebsd/zfs/sys/Makefile.am
include/os/freebsd/zfs/sys/zfs_bootenv_os.h [new file with mode: 0644]
include/os/linux/zfs/sys/Makefile.am
include/os/linux/zfs/sys/zfs_bootenv_os.h [new file with mode: 0644]
include/sys/Makefile.am
include/sys/fs/zfs.h
include/sys/vdev.h
include/sys/vdev_impl.h
include/sys/zfs_bootenv.h [new file with mode: 0644]
lib/Makefile.am
lib/libzfs/libzfs_pool.c
lib/libzfs_core/libzfs_core.c
lib/libzfsbootenv/.gitignore [new file with mode: 0644]
lib/libzfsbootenv/Makefile.am [new file with mode: 0644]
lib/libzfsbootenv/libzfsbootenv.pc.in [new file with mode: 0644]
lib/libzfsbootenv/lzbe_device.c [new file with mode: 0644]
lib/libzfsbootenv/lzbe_pair.c [new file with mode: 0644]
lib/libzfsbootenv/lzbe_util.c [new file with mode: 0644]
lib/libzpool/Makefile.am
module/zfs/vdev_label.c
module/zfs/zfs_ioctl.c
rpm/generic/zfs.spec.in
tests/zfs-tests/cmd/libzfs_input_check/Makefile.am
tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c