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