Lines Matching defs:zhp
357 zpool_handle_t *zhp;
360 if (zpool_open_silent(hdl, name, &zhp) != 0)
363 if (zhp == NULL) {
368 verify(nvlist_lookup_uint64(zhp->zpool_config, ZPOOL_CONFIG_POOL_GUID,
371 zpool_close(zhp);
1478 name_or_guid_exists(zpool_handle_t *zhp, void *data)
1486 verify(nvlist_lookup_string(zhp->zpool_config,
1493 verify(nvlist_lookup_uint64(zhp->zpool_config,
1499 zpool_close(zhp);
1546 find_aux(zpool_handle_t *zhp, void *data)
1554 verify(nvlist_lookup_nvlist(zhp->zpool_config, ZPOOL_CONFIG_VDEV_TREE,
1563 cbp->cb_zhp = zhp;
1569 zpool_close(zhp);
1586 zpool_handle_t *zhp;
1623 (zhp = zpool_open_canfail(hdl, name)) != NULL) {
1624 if (zpool_get_prop_int(zhp, ZPOOL_PROP_READONLY, NULL))
1631 zpool_close(zhp);
1657 if ((zhp = zpool_open_canfail(hdl, name)) != NULL &&
1658 (pool_config = zpool_get_config(zhp, NULL))
1681 if (zhp != NULL)
1682 zpool_close(zhp);