Lines Matching refs:spp
99 mdsetname_t **spp, in add_hotspares() argument
114 usage(*spp, 1); in add_hotspares()
117 assert(*spp != NULL); in add_hotspares()
118 if (meta_check_ownership(*spp, ep) != 0) in add_hotspares()
121 if ((cnt = meta_get_hsp_names(*spp, &hspnlp, 0, ep)) < 0) { in add_hotspares()
130 if ((cnt = metahspnamelist(spp, &hspnlp, 1, &argv[0], ep)) < 0) in add_hotspares()
136 assert(*spp != NULL); in add_hotspares()
139 if (meta_lock(*spp, TRUE, ep)) in add_hotspares()
143 if (meta_check_ownership(*spp, ep) != 0) in add_hotspares()
147 if (metanamelist(spp, &nlp, argc, argv, in add_hotspares()
156 if (meta_hs_add(*spp, hspnp, nlp, options, ep) != 0) in add_hotspares()
175 mdsetname_t **spp, in delete_hotspares() argument
190 usage(*spp, 1); in delete_hotspares()
193 assert(*spp != NULL); in delete_hotspares()
194 if (meta_check_ownership(*spp, ep) != 0) in delete_hotspares()
197 if ((cnt = meta_get_hsp_names(*spp, &hspnlp, 0, ep)) < 0) { in delete_hotspares()
202 } else if ((cnt = metahspnamelist(spp, &hspnlp, 1, &argv[0], in delete_hotspares()
209 assert(*spp != NULL); in delete_hotspares()
212 if (meta_lock(*spp, TRUE, ep)) in delete_hotspares()
216 if (meta_check_ownership(*spp, ep) != 0) in delete_hotspares()
220 if (metanamelist(spp, &nlp, argc, argv, in delete_hotspares()
230 if (meta_hs_delete(*spp, hspnp, nlp, options, ep) != 0) { in delete_hotspares()
264 mdsetname_t **spp, in enable_hotspares() argument
276 usage(*spp, 1); in enable_hotspares()
279 if (metanamelist(spp, &nlp, argc, argv, in enable_hotspares()
284 assert(*spp != NULL); in enable_hotspares()
287 if (meta_lock(*spp, TRUE, ep)) in enable_hotspares()
291 if (meta_check_ownership(*spp, ep) != 0) in enable_hotspares()
295 rval = meta_hs_enable(*spp, nlp, options, ep); in enable_hotspares()
308 mdsetname_t **spp, in replace_hotspares() argument
324 usage(*spp, 1); in replace_hotspares()
327 assert(*spp != NULL); in replace_hotspares()
328 if (meta_check_ownership(*spp, ep) != 0) in replace_hotspares()
331 if ((cnt = meta_get_hsp_names(*spp, &hspnlp, 0, ep)) < 0) { in replace_hotspares()
336 } else if ((cnt = metahspnamelist(spp, &hspnlp, 1, &argv[0], in replace_hotspares()
342 assert(*spp != NULL); in replace_hotspares()
345 if (meta_lock(*spp, TRUE, ep)) in replace_hotspares()
349 if (meta_check_ownership(*spp, ep) != 0) in replace_hotspares()
353 if ((oldnp = metaname(spp, argv[1], LOGICAL_DEVICE, ep)) == NULL) in replace_hotspares()
357 if ((newnp = metaname(spp, argv[2], LOGICAL_DEVICE, ep)) == NULL) in replace_hotspares()
365 if (meta_hs_replace(*spp, hspnp, oldnp, newnp, options, ep) in replace_hotspares()
451 mdsetname_t **spp, in status_hotspares() argument
465 assert(*spp != NULL); in status_hotspares()
466 if (meta_check_ownership(*spp, ep) != 0) in status_hotspares()
469 if ((cnt = meta_get_hsp_names(*spp, &hspnlp, 0, ep)) < 0) { in status_hotspares()
474 } else if ((cnt = metahspnamelist(spp, &hspnlp, argc, argv, ep)) < 0) { in status_hotspares()
480 assert(*spp != NULL); in status_hotspares()
481 if (meta_check_ownership(*spp, ep) != 0) in status_hotspares()
488 if (status_hsp(*spp, hspnp, ep) != 0) in status_hotspares()
492 if (print_hsp_devid(*spp, hspnlp, stdout, ep) == 0) { in status_hotspares()