Lines Matching refs:comp

212 			 * Check if this comp is hotspared and
1107 ms_comp_t *comp;
1110 (void) md_mapbuf(un, blkno, ldbtob(*cnt), &bp, &comp);
1112 return ((intptr_t)&comp->un_mirror);
1181 ms_comp_t *comp;
1184 comp = (struct ms_comp *)((void *)&((char *)un)[un->un_ocomp]);
1185 comp += indx;
1186 return ((intptr_t)&comp->un_mirror);
1220 ms_comp_t *comp;
1224 comp = (struct ms_comp *)((void *)&((char *)un)[un->un_ocomp]);
1225 comp += indx;
1226 tmpdev = comp->un_dev;
1229 * Check if this comp is hotspared and if it is
1234 comp->un_mirror.ms_hs_id ?
1235 comp->un_mirror.ms_hs_key :
1236 comp->un_key);
1237 comp->un_dev = tmpdev;
1240 cd->cd_dev = comp->un_dev;
1241 cd->cd_orig_dev = comp->un_mirror.ms_orig_dev;
1272 ms_comp_t *comp;
1294 comp = (struct ms_comp *)((void *)&((char *)un)[un->un_ocomp]);
1296 comp += ci;
1297 old_dev = comp->un_dev;
1326 * now check to see if new comp can be used in
1327 * place of old comp
1342 sv->key = comp->un_key;
1348 if (comp->un_mirror.ms_flags & MDM_S_ISOPEN) {
1349 md_layered_close(comp->un_dev, MD_OFLG_NULL);
1350 comp->un_mirror.ms_flags &= ~MDM_S_ISOPEN;
1356 if (comp->un_mirror.ms_hs_id != 0) {
1360 hs_key = comp->un_mirror.ms_hs_key;
1361 comp->un_dev = comp->un_mirror.ms_orig_dev;
1362 comp->un_start_block = comp->un_mirror.ms_orig_blk;
1363 comp->un_mirror.ms_hs_key = 0;
1364 comp->un_mirror.ms_hs_id = 0;
1365 comp->un_mirror.ms_orig_dev = 0;
1368 if ((comp->un_mirror.ms_state != CS_OKAY) &&
1369 (comp->un_mirror.ms_state != CS_RESYNC))
1381 this_dev = md_resolve_bydevid(mnum, comp->un_dev, comp->un_key);
1392 this_dev = md_getdevnum(setno, side, comp->un_key,
1399 * comp->un_dev will be NODEV64 because of the failure to look
1403 comp->un_mirror.ms_orig_dev = comp->un_dev;
1407 comp->un_dev = this_dev;
1426 comp->un_dev = comp->un_mirror.ms_orig_dev;
1442 comp->un_mirror.ms_flags |= MDM_S_ISOPEN;
1459 comp->un_mirror.ms_hs_id = nd->nd_hs_id;
1460 comp->un_mirror.ms_hs_key = nd->nd_key;
1462 comp->un_mirror.ms_orig_blk = comp->un_start_block;
1466 (void) md_devname(setno, comp->un_mirror.ms_orig_dev, devname,
1475 comp->un_key = nd->nd_key;
1482 if (md_getmajor(comp->un_dev) == md_major) {
1491 comp->un_dev = nd->nd_dev;
1492 comp->un_start_block = nd->nd_start_blk;
1504 if (md_getmajor(comp->un_dev) == md_major) {
1505 minor_t comp_mnum = md_getminor(comp->un_dev);
1508 md_set_parent(comp->un_dev, MD_SID(un));
1532 ms_comp_t *comp;
1561 comp = (struct ms_comp *)((void *)&((char *)un)[un->un_ocomp]);
1562 comp += ci;