Lines Matching defs:stripep

172 	md_stripe_t	*stripep
177 for (row = 0; (row < stripep->rows.rows_len); ++row) {
178 md_row_t *rp = &stripep->rows.rows_val[row];
185 if (stripep->rows.rows_val != NULL) {
186 assert(stripep->rows.rows_len > 0);
187 Free(stripep->rows.rows_val);
189 Free(stripep);
207 md_stripe_t *stripep;
233 stripep = Zalloc(sizeof (*stripep));
237 stripep->rows.rows_len = ms->un_nrows;
238 stripep->rows.rows_val = Zalloc(stripep->rows.rows_len *
239 sizeof (*stripep->rows.rows_val));
242 stripep->common.namep = stripenp;
243 stripep->common.type = ms->c.un_type;
244 stripep->common.state = ms->c.un_status;
245 stripep->common.capabilities = ms->c.un_capabilities;
246 stripep->common.parent = ms->c.un_parent;
247 stripep->common.size = ms->c.un_total_blocks;
248 stripep->common.user_flags = ms->c.un_user_flags;
249 stripep->common.revision = ms->c.un_revision;
253 ((stripep->hspnamep = metahsphspname(&sp, ms->un_hsp_id,
262 md_row_t *rp = &stripep->rows.rows_val[row];
368 dnp->unitp = (md_common_t *)stripep;
369 return (stripep);
374 meta_free_stripe(stripep);
404 md_stripe_t *stripep;
411 if ((stripep = meta_get_stripe(sp, stripenp, ep)) == NULL)
415 for (row = 0; (row < stripep->rows.rows_len); ++row) {
416 md_row_t *rp = &stripep->rows.rows_val[row];
553 md_stripe_t *stripep,
564 if (stripep->common.revision != MD_64BIT_META_DEV) {
571 if (stripep->common.revision != MD_FN_META_DEV) {
579 stripep->common.namep->cname, stripep->rows.rows_len) == EOF)
583 for (row = 0; (row < stripep->rows.rows_len); ++row) {
584 md_row_t *rp = &stripep->rows.rows_val[row];
607 if (row != (stripep->rows.rows_len - 1))
613 if (stripep->hspnamep != NULL)
614 if (fprintf(fp, " -h %s", stripep->hspnamep->hspname) == EOF)
972 md_stripe_t *stripep,
991 if ((stripep->common.revision & MD_64BIT_META_DEV) == 0) {
995 if (meta_getdevs(sp, stripep->common.namep,
1008 if ((stripep->common.revision & MD_FN_META_DEV) == 0) {
1012 if (meta_getdevs(sp, stripep->common.namep,
1021 stripep->common.namep->cname) == EOF) {
1028 if (stripep->hspnamep != NULL) {
1029 if (meta_print_stripe_options(stripep->hspnamep,
1035 if (metaismeta(stripep->common.namep)) {
1036 if (meta_get_tstate(stripep->common.namep->dev, &tstate, ep)
1050 stripep->common.size,
1051 meta_number_to_string(stripep->common.size, DEV_BSIZE))
1057 for (row = 0; (row < stripep->rows.rows_len); ++row) {
1058 md_row_t *rp = &stripep->rows.rows_val[row];
1076 if (MD_HAS_PARENT(stripep->common.parent)) {
1117 md_stripe_t *stripep;
1153 if ((stripep = meta_get_stripe_common(sp, stripenp,
1159 (MD_HAS_PARENT(stripep->common.parent))) {
1165 if (stripe_print(stripep, fname, fp, options, ep) != 0)
1168 if (stripe_report(sp, stripep, nlpp, fname, fp, options,
1174 for (row = 0; (row < stripep->rows.rows_len); ++row) {
1175 md_row_t *rp = &stripep->rows.rows_val[row];
1205 md_stripe_t *stripep;
1212 if ((stripep = meta_get_stripe_common(sp, stripenp, 1, ep)) == NULL)
1220 for (row = 0; (row < stripep->rows.rows_len); ++row) {
1221 md_row_t *rp = &stripep->rows.rows_val[row];
1234 for (row = 0; (row < stripep->rows.rows_len); ++row) {
1235 md_row_t *rp = &stripep->rows.rows_val[row];
1269 md_stripe_t *stripep;
1272 if ((stripep = meta_get_stripe(sp, stripenp, ep)) == NULL)
1274 for (row = 0; (row < stripep->rows.rows_len); ++row) {
1275 md_row_t *rp = &stripep->rows.rows_val[row];
1567 md_stripe_t *stripep;
1578 if ((stripep = meta_get_stripe(sp, stripenp, ep)) == NULL)
1583 if (stripep->hspnamep == NULL)
1586 paramsp->hsp_id = stripep->hspnamep->hsp;
1631 md_stripe_t *stripep,
1637 mdname_t *stripenp = stripep->common.namep;
1641 thisnp = stripep->rows.rows_val[row].comps.comps_val[comp].compnamep;
1643 md_row_t *rp = &stripep->rows.rows_val[r];
1699 md_stripe_t *stripep,
1704 mdname_t *stripenp = stripep->common.namep;
1711 if (stripep->rows.rows_len < 1) {
1715 for (row = 0; (row < stripep->rows.rows_len); ++row) {
1716 md_row_t *rp = &stripep->rows.rows_val[row];
1764 if (check_twice(stripep, row, comp, ep) != 0)
1771 if ((stripep->hspnamep != NULL) &&
1772 (metachkhsp(sp, stripep->hspnamep, ep) != 0)) {
1786 md_stripe_t *stripep,
1791 uint_t nrow = stripep->rows.rows_len;
1803 md_row_t *rp = &stripep->rows.rows_val[row];
1821 stripep->rows.rows_val[0].comps.comps_val[0].compnamep,
1830 stripep->rows.rows_val[0].comps.comps_val[0].compnamep,
1851 if (meta_setup_geom((md_unit_t *)ms, stripep->common.namep, geomp,
1888 stripep->common.namep->cname);
1891 stripep->common.namep->cname);
1918 md_stripe_t *stripep,
1923 mdname_t *stripenp = stripep->common.namep;
1926 uint_t nrow = stripep->rows.rows_len;
1942 if (meta_check_stripe(sp, stripep, options, ep) != 0)
1949 md_row_t *rp = &stripep->rows.rows_val[row];
1963 md_row_t *rp = &stripep->rows.rows_val[row];
2068 if (stripep->hspnamep != NULL)
2069 ms->un_hsp_id = stripep->hspnamep->hsp;
2076 stripep->common.size = ms->c.un_total_blocks;
2078 stripep->rows.rows_val[row].row_size =
2083 if (stripe_geom(stripep, ms, ep) != 0) {
2168 md_stripe_t *stripep = NULL;
2212 stripep = Zalloc(sizeof (*stripep));
2215 stripep->common.namep = stripenp;
2216 stripep->common.type = MD_DEVICE;
2231 stripep->rows.rows_len = nrow;
2232 stripep->rows.rows_val =
2233 Zalloc(nrow * sizeof (*stripep->rows.rows_val));
2235 md_row_t *mdr = &stripep->rows.rows_val[row];
2312 if ((stripep->hspnamep = metahspname(spp, optarg,
2321 if (stripep->hspnamep->hsp == MD_HSP_NONE) {
2323 stripep->hspnamep->hsp, optarg);
2343 if (meta_create_stripe(*spp, stripep, options, ep) != 0)
2368 if (stripep != NULL)
2369 meta_free_stripe(stripep);
2384 md_stripe_t *stripep;
2435 if ((stripep = meta_get_stripe(sp, stripenp, ep)) == NULL)
2439 if (MD_HAS_PARENT(stripep->common.parent)) {
2465 for (row = 0; (row < stripep->rows.rows_len); ++row) {
2466 md_row_t *rp = &stripep->rows.rows_val[row];
2498 md_stripe_t *stripep;
2501 if ((stripep = meta_get_stripe(sp, nlp->namep, ep)) == NULL) {
2506 for (row = 0; row < stripep->rows.rows_len; ++row) {
2507 md_row_t *rp = &stripep->rows.rows_val[row];