Lines Matching defs:stripenp

53 	mdname_t	*stripenp,
67 assert(sp->setno == MD_MIN2SET(meta_getminor(stripenp->dev)));
73 meta_invalidate_name(stripenp);
110 params.mnum = meta_getminor(stripenp->dev);
134 meta_invalidate_name(stripenp);
139 stripenp->cname, oldnp->cname, newnp->cname);
199 mdname_t *stripenp,
204 mddrivename_t *dnp = stripenp->drivenamep;
212 assert(sp->setno == MD_MIN2SET(meta_getminor(stripenp->dev)));
221 if ((miscname = metagetmiscname(stripenp, ep)) == NULL)
225 meta_getminor(stripenp->dev), stripenp->cname);
228 if ((ms = (ms_unit_t *)meta_get_mdunit(sp, stripenp, ep)) == NULL)
242 stripep->common.namep = stripenp;
384 mdname_t *stripenp,
388 return (meta_get_stripe_common(sp, stripenp, 0, ep));
397 mdname_t *stripenp,
411 if ((stripep = meta_get_stripe(sp, stripenp, ep)) == NULL)
436 if (meta_check_overlap(stripenp->cname, np,
471 mdname_t *stripenp = p->namep;
474 if (in_stripe(sp, stripenp, np, slblk, nblks, ep) != 0) {
1109 mdname_t *stripenp,
1122 assert((stripenp == NULL) ||
1123 (sp->setno == MD_MIN2SET(meta_getminor(stripenp->dev))));
1126 if (stripenp == NULL) {
1153 if ((stripep = meta_get_stripe_common(sp, stripenp,
1199 mdname_t *stripenp,
1212 if ((stripep = meta_get_stripe_common(sp, stripenp, 1, ep)) == NULL)
1265 mdname_t *stripenp,
1272 if ((stripep = meta_get_stripe(sp, stripenp, ep)) == NULL)
1294 mdname_t *stripenp,
1323 assert(sp->setno == MD_MIN2SET(meta_getminor(stripenp->dev)));
1326 if (metachkmeta(stripenp, ep) != 0)
1353 if ((old_un = (ms_unit_t *)meta_get_mdunit(sp, stripenp, ep)) == NULL)
1471 if (meta_adjust_geom((md_unit_t *)new_un, stripenp,
1481 stripenp->cname);
1485 stripenp->cname);
1522 if (invalidate_components(sp, stripenp, ep) != 0)
1524 meta_invalidate_name(stripenp);
1530 "%s: component is attached\n"), stripenp->cname);
1533 "%s: components are attached\n"), stripenp->cname);
1539 if (meta_concat_parent(sp, stripenp, ep) != 0)
1562 mdname_t *stripenp,
1571 assert(sp->setno == MD_MIN2SET(meta_getminor(stripenp->dev)));
1574 if (metachkmeta(stripenp, ep) != 0)
1578 if ((stripep = meta_get_stripe(sp, stripenp, ep)) == NULL)
1596 mdname_t *stripenp,
1605 assert(sp->setno == MD_MIN2SET(meta_getminor(stripenp->dev)));
1608 if (metachkmeta(stripenp, ep) != 0)
1614 msp.mnum = meta_getminor(stripenp->dev);
1616 if (metaioctl(MD_IOCCHANGE, &msp, &msp.mde, stripenp->cname) != 0)
1620 meta_invalidate_name(stripenp);
1637 mdname_t *stripenp = stripep->common.namep;
1651 if (meta_check_overlap(stripenp->cname, thisnp, 0, -1,
1704 mdname_t *stripenp = stripep->common.namep;
1713 meta_getminor(stripenp->dev), stripenp->cname));
1722 meta_getminor(stripenp->dev), stripenp->cname));
1731 if (meta_stripe_check_interlace(rp->interlace, stripenp->cname,
1923 mdname_t *stripenp = stripep->common.namep;
2065 MD_SID(ms) = meta_getminor(stripenp->dev);
2097 stripenp->cname);
2129 stripenp->cname) != 0) {
2144 if (invalidate_components(sp, stripenp, ep) != 0)
2146 meta_invalidate_name(stripenp);
2165 mdname_t *stripenp = NULL;
2177 if ((stripenp = metaname(spp, uname, META_DEVICE, ep)) == NULL)
2180 uname = stripenp->cname;
2181 if (metachkmeta(stripenp, ep) != 0)
2194 if (metagetmiscname(stripenp, ep) != NULL) {
2196 meta_getminor(stripenp->dev), uname);
2215 stripep->common.namep = stripenp;
2220 (void) mdmderror(ep, MDE_NROWS, meta_getminor(stripenp->dev),
2226 (void) mdmderror(ep, MDE_NROWS, meta_getminor(stripenp->dev),
2241 meta_getminor(stripenp->dev), uname);
2248 meta_getminor(stripenp->dev), uname);
2262 meta_getminor(stripenp->dev), uname);
2379 mdname_t *stripenp,
2390 assert((stripenp == NULL) ||
2391 (sp->setno == MD_MIN2SET(meta_getminor(stripenp->dev))));
2394 if (stripenp == NULL) {
2404 stripenp = p->namep;
2412 stripenp->cname, options, 0, ep) != 0) {
2417 if (meta_stripe_reset(sp, stripenp,
2431 if (metachkmeta(stripenp, ep) != 0)
2435 if ((stripep = meta_get_stripe(sp, stripenp, ep)) == NULL)
2440 return (mdmderror(ep, MDE_IN_USE, meta_getminor(stripenp->dev),
2441 stripenp->cname));
2445 if (invalidate_components(sp, stripenp, ep) != 0)
2449 if (meta_reset(sp, stripenp, options, ep) != 0)
2457 stripenp->cname);
2482 meta_invalidate_name(stripenp);