Lines Matching refs:spares
151 nvlist_t **spares; in remove_spares() local
167 &spares, &nspares) != 0) { in remove_spares()
173 if (nvlist_lookup_uint64(spares[i], ZPOOL_CONFIG_GUID, in remove_spares()
175 devname = zpool_vdev_name(NULL, zhp, spares[i], in remove_spares()
177 nvlist_lookup_uint64_array(spares[i], in remove_spares()
250 nvlist_t **spares; in replace_with_spare() local
265 &spares, &nspares) != 0) in replace_with_spare()
288 if (nvlist_lookup_string(spares[s], ZPOOL_CONFIG_PATH, in replace_with_spare()
293 if ((nvlist_lookup_string(spares[s], ZPOOL_CONFIG_TYPE, in replace_with_spare()
299 (void) nvlist_add_uint64(spares[s], in replace_with_spare()
303 ZPOOL_CONFIG_CHILDREN, (const nvlist_t **)&spares[s], 1); in replace_with_spare()