Lines Matching refs:rpd
2028 rpool_data_t *rpd = data;
2042 rpd->pool_count++;
2043 rpd->pool_list = realloc(rpd->pool_list,
2044 rpd->pool_count * sizeof (rpd->pool_list[0]));
2045 rpd->pool_list[rpd->pool_count - 1] = strdup(zpool);
2078 rpool_data_t rpd;
2096 rpd.pool_list = NULL;
2097 rpd.pool_count = 0;
2099 if ((zret = zpool_iter(g_zfs, be_zpool_find_rpools_callback, &rpd))
2100 == 0 && rpd.pool_count == 0) {
2105 } else if (zret == 0 && rpd.pool_count > 0) {
2106 *pool_listp = rpd.pool_list;
2107 *pool_countp = rpd.pool_count;
2109 if (rpd.pool_count > 0 && rpd.pool_list != NULL) {
2111 for (i = 0; i < rpd.pool_count; i++)
2112 free(rpd.pool_list[i]);
2113 free(rpd.pool_list);