Lines Matching refs:pool_name
248 zpool_add_handle(zfs_handle_t *zhp, const char *pool_name)
253 if ((zph = zpool_open_canfail(hdl, pool_name)) != NULL) {
262 zpool_find_handle(zfs_handle_t *zhp, const char *pool_name, int len)
268 (strncmp(pool_name, zpool_get_name(zph), len) != 0))
281 char *pool_name;
286 pool_name = zfs_alloc(zhp->zfs_hdl, len);
287 (void) strlcpy(pool_name, zhp->zfs_name, len);
289 zph = zpool_find_handle(zhp, pool_name, len);
291 zph = zpool_add_handle(zhp, pool_name);
293 free(pool_name);