Lines Matching defs:pools

221 	pool_entry_t		*pools;
366 * list of known pools.
368 for (pe = pl->pools; pe != NULL; pe = pe->pe_next) {
378 pe->pe_next = pl->pools;
379 pl->pools = pe;
482 * Convert our list of pools into the definitive set of configurations. We
513 for (pe = pl->pools; pe != NULL; pe = pe->pe_next) {
807 * zdb uses this path to report on active pools that were
1439 * Given a list of directories to search, find all pools stored on disk. This
1440 * includes partial pools which are not available to import. If no args are
1451 pool_list_t pools = { 0 };
1521 * would prevent a zdb -e of active pools with
1529 add_config(hdl, &pools,
1542 ret = get_configs(hdl, &pools, iarg->can_be_active, iarg->policy);
1544 for (pe = pools.pools; pe != NULL; pe = penext) {
1558 for (ne = pools.names; ne != NULL; ne = nenext) {
1612 * Given a cache file, return the contents as a list of importable pools.
1623 nvlist_t *pools;
1671 * Go through and get the current state of the pools and refresh their
1674 if (nvlist_alloc(&pools, 0, 0) != 0) {
1694 nvlist_free(pools);
1743 * a list of pools that it found based on the
1753 fnvlist_add_nvlist(pools, nvpair_name(pair),
1767 nvlist_free(pools);
1775 nvlist_free(pools);
1779 if (nvlist_add_nvlist(pools, nvpair_name(elem), dst) != 0) {
1783 nvlist_free(pools);
1789 return (pools);
1797 nvlist_t *pools = NULL;
1827 pools = zpool_find_import_impl(hdl, iarg, &lock, cache);
1829 return (pools);
1836 nvlist_t *pools = NULL;
1841 pools = zpool_find_import_cached(hdl, import);
1843 pools = zpool_find_import(hdl, import);
1845 if ((pools == NULL || nvlist_empty(pools)) &&
1848 "no pools found"));
1851 return (pools);
1874 nvlist_t *pools;
1889 pools = zpool_search_import(hdl, args);
1891 if (pools != NULL) {
1893 while ((elem = nvlist_next_nvpair(pools, elem)) != NULL) {
1905 fnvlist_free(pools);