Lines Matching refs:pool_name
262 zpool_add_handle(zfs_handle_t *zhp, const char *pool_name)
267 if ((zph = zpool_open_canfail(hdl, pool_name)) != NULL) {
276 zpool_find_handle(zfs_handle_t *zhp, const char *pool_name, int len)
282 (strncmp(pool_name, zpool_get_name(zph), len) != 0))
295 char *pool_name;
300 pool_name = zfs_alloc(zhp->zfs_hdl, len);
301 (void) strlcpy(pool_name, zhp->zfs_name, len);
303 zph = zpool_find_handle(zhp, pool_name, len);
305 zph = zpool_add_handle(zhp, pool_name);
307 free(pool_name);