Lines Matching refs:spares
150 nvlist_t **spares; in remove_spares() local
166 &spares, &nspares) != 0) { in remove_spares()
172 if (nvlist_lookup_uint64(spares[i], ZPOOL_CONFIG_GUID, in remove_spares()
174 devname = zpool_vdev_name(NULL, zhp, spares[i], in remove_spares()
176 nvlist_lookup_uint64_array(spares[i], in remove_spares()
249 nvlist_t **spares; in replace_with_spare() local
264 &spares, &nspares) != 0) in replace_with_spare()
287 if (nvlist_lookup_string(spares[s], ZPOOL_CONFIG_PATH, in replace_with_spare()
292 if ((nvlist_lookup_string(spares[s], ZPOOL_CONFIG_TYPE, in replace_with_spare()
298 (void) nvlist_add_uint64(spares[s], in replace_with_spare()
302 ZPOOL_CONFIG_CHILDREN, (const nvlist_t **)&spares[s], 1); in replace_with_spare()