From 1db9e6e4e4c355a89e52f156f63843d01f84866e Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Wed, 16 Sep 2020 01:42:27 +0300 Subject: 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 Reviewed-by: Allan Jude Reviewed-by: Paul Dagnelie Reviewed-by: Igor Kozhukhov Signed-off-by: Toomas Soome Closes #10774 --- include/libzfs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/libzfs.h') diff --git a/include/libzfs.h b/include/libzfs.h index 6b4f518a4..e0b2676a4 100644 --- a/include/libzfs.h +++ b/include/libzfs.h @@ -892,8 +892,8 @@ extern int zpool_in_use(libzfs_handle_t *, int, pool_state_t *, char **, * Label manipulation. */ extern int zpool_clear_label(int); -extern int zpool_set_bootenv(zpool_handle_t *, const char *); -extern int zpool_get_bootenv(zpool_handle_t *, char *, size_t, off_t); +extern int zpool_set_bootenv(zpool_handle_t *, const nvlist_t *); +extern int zpool_get_bootenv(zpool_handle_t *, nvlist_t **); /* * Management interfaces for SMB ACL files -- cgit v1.2.3