Lines Matching refs:hsnp

292 		mdname_t	*hsnp = hs->hsnamep;
295 if (metaismeta(hsnp))
298 hsnp, 0, -1, ep) != 0)
1143 mdname_t *hsnp = p->namep;
1151 if (meta_check_hotspare(sp, hsnp, ep) != 0)
1153 if ((size = metagetsize(hsnp, ep)) == MD_DISKADDR_ERROR)
1156 return (mdsyserror(ep, ENOSPC, hsnp->cname));
1157 if ((label = metagetlabel(hsnp, ep)) == MD_DISKADDR_ERROR)
1159 if ((start_blk = metagetstart(sp, hsnp, ep))
1168 if (add_key_name(sp, hsnp, NULL, ep) != 0)
1173 shs.shs_component_old = hsnp->dev;
1177 shs.shs_key_old = hsnp->key;
1181 (void) del_key_name(sp, hsnp, ep);
1295 mdname_t *hsnp = p->namep;
1302 shs.shs_component_old = hsnp->dev;
1303 meta_invalidate_name(hsnp);
1304 if (metaioctl(MD_IOCSET_HS, &shs, &shs.mde, hsnp->cname) != 0)
1547 mdname_t *hsnp = hsnlp->namep;
1553 if (meta_getdev(sp, hsnp, ep) != 0)
1555 fs_dev = hsnp->dev;
1568 if (in_hsp(sp, hspnp->hspnamep, hsnp, 0, -1, ep) != 0) {
1575 if (fs_dev != hsnp->dev) {
1581 hsnp->dev = fs_dev;
1582 hsnp->start_blk = -1;
1583 hsnp->end_blk = -1;
1586 hsnp, hsnp, options, ep);
1596 if (meta_check_hotspare(sp, hsnp, ep) != 0)
1599 if ((size = metagetsize(hsnp, ep)) == MD_DISKADDR_ERROR)
1601 if ((label = metagetlabel(hsnp, ep)) == MD_DISKADDR_ERROR)
1603 if ((start_blk = metagetstart(sp, hsnp, ep))
1607 (void) mdsyserror(ep, ENOSPC, hsnp->cname);
1612 shs.shs_component_old = hsnp->dev;
1613 shs.shs_component_new = hsnp->dev;
1617 if (metaioctl(MD_IOCSET_HS, &shs, &shs.mde, hsnp->cname) != 0) {
1629 hsnp->cname, ep);
1645 meta_invalidate_name(hsnp);
1651 hsnp->cname);
1688 mdname_t *hsnp = hsp->hsnamep;
1691 hsnp, 0, -1, ep) != 0)
1715 mdname_t *hsnp = hsp->hsnamep;
1719 if (meta_check_hotspare(sp, hsnp, ep) != 0)
1721 if ((size = metagetsize(hsnp, ep)) == MD_DISKADDR_ERROR) {
1763 mdname_t *hsnp = hsp->hsnamep;
1765 (void) metanamelist_append(&hsnlp, hsnp);