Lines Matching defs:zhdl
102 find_vdev(libzfs_handle_t *zhdl, nvlist_t *nv, uint64_t search_guid)
121 if ((ret = find_vdev(zhdl, child[c], search_guid)) != NULL)
130 if ((ret = find_vdev(zhdl, child[c], search_guid)) != NULL)
139 if ((ret = find_vdev(zhdl, child[c], search_guid)) != NULL)
193 find_and_remove_spares(libzfs_handle_t *zhdl, uint64_t vdev_guid)
199 zpool_iter(zhdl, remove_spares, &cb);
208 find_by_guid(libzfs_handle_t *zhdl, uint64_t pool_guid, uint64_t vdev_guid,
219 if (zpool_iter(zhdl, find_pool, &cb) != 1)
231 if ((*vdevp = find_vdev(zhdl, nvroot, vdev_guid)) == NULL) {
375 libzfs_handle_t *zhdl = zdp->zrd_hdl;
425 int nspares = find_and_remove_spares(zhdl, vdev_guid);
434 if ((zhp = find_by_guid(zhdl, pool_guid, vdev_guid,
457 ", err:%d", devname, libzfs_errno(zhdl));
567 if ((zhp = find_by_guid(zhdl, pool_guid, vdev_guid,
645 libzfs_handle_t *zhdl;
647 if ((zhdl = libzfs_init()) == NULL)
651 libzfs_fini(zhdl);
656 zdp->zrd_hdl = zhdl;