diff options
author | Ryan Moeller <[email protected]> | 2022-03-14 18:44:56 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-14 15:44:56 -0700 |
commit | 8bb9ecf4bf927980ff569917e137d37fe62d1f27 (patch) | |
tree | 711fd9f34e6fbca167dcfedbc3cf3be848c139f9 /lib/libzfs/os | |
parent | becc717f6143caf80bad6879b6c6402538ecae89 (diff) |
libzfs: Convert to fnvpair functions
Improves readability. No functional change intended.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #13197
Diffstat (limited to 'lib/libzfs/os')
-rw-r--r-- | lib/libzfs/os/linux/libzfs_pool_os.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libzfs/os/linux/libzfs_pool_os.c b/lib/libzfs/os/linux/libzfs_pool_os.c index 90eb8db50..65a7a89fa 100644 --- a/lib/libzfs/os/linux/libzfs_pool_os.c +++ b/lib/libzfs/os/linux/libzfs_pool_os.c @@ -224,10 +224,8 @@ zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) dgettext(TEXT_DOMAIN, "cannot label '%s'"), name); if (zhp) { - nvlist_t *nvroot; - - verify(nvlist_lookup_nvlist(zhp->zpool_config, - ZPOOL_CONFIG_VDEV_TREE, &nvroot) == 0); + nvlist_t *nvroot = fnvlist_lookup_nvlist(zhp->zpool_config, + ZPOOL_CONFIG_VDEV_TREE); if (zhp->zpool_start_block == 0) start_block = find_start_block(nvroot); |