]> git.proxmox.com Git - mirror_zfs.git/blobdiff - cmd/zdb/zdb.c
Expose libzutil error info in libpc_handle_t
[mirror_zfs.git] / cmd / zdb / zdb.c
index 96db9c4b9a76c4b5459d53581690934b982f9df5..18a94da1f744ef41db781557830d91e3c920ee36 100644 (file)
@@ -8778,8 +8778,12 @@ main(int argc, char **argv)
                args.path = searchdirs;
                args.can_be_active = B_TRUE;
 
-               error = zpool_find_config(NULL, target_pool, &cfg, &args,
-                   &libzpool_config_ops);
+               libpc_handle_t lpch = {
+                       .lpc_lib_handle = NULL,
+                       .lpc_ops = &libzpool_config_ops,
+                       .lpc_printerr = B_TRUE
+               };
+               error = zpool_find_config(&lpch, target_pool, &cfg, &args);
 
                if (error == 0) {