Lines Matching refs:sd

41 	md_set_desc		*sd;
46 if ((sd = metaget_setdesc(sp, ep)) == NULL)
49 if (MD_MNSET_DESC(sd)) {
50 nd = sd->sd_nodelist;
65 if (sd->sd_nodes[i][0] == '\0')
70 sd->sd_nodes[i], ep))
108 md_set_desc *sd;
110 if ((sd = metaget_setdesc(sp, ep)) == NULL)
115 sd->sd_ctime, sd->sd_genid, flags);
206 md_set_desc *sd;
226 if ((sd = metaget_setdesc(sp, ep)) == NULL)
251 if (MD_MNSET_DESC(sd)) {
252 nd = sd->sd_nodelist;
273 if (MD_MNSET_DESC(sd)) {
278 nd = sd->sd_nodelist;
292 nd = sd->sd_nodelist;
374 now = sd->sd_ctime;
375 genid = sd->sd_genid;
382 if (!(MD_MNSET_DESC(sd))) {
386 if (sd->sd_nodes[i][0] == '\0')
389 if (clnt_lock_set(sd->sd_nodes[i], sp, ep)) {
411 if ((MD_MNSET_DESC(sd)) && (curdd == NULL)) {
413 sd->sd_mn_mynode->nd_nodename,
414 sd->sd_mn_mynode->nd_nodeid, ep)) {
423 sd->sd_mn_master_nodeid = sd->sd_mn_mynode->nd_nodeid;
424 (void) strcpy(sd->sd_mn_master_nodenm,
425 sd->sd_mn_mynode->nd_nodename);
426 sd->sd_mn_am_i_master = 1;
440 if (MD_MNSET_DESC(sd)) {
441 nd = sd->sd_nodelist;
454 if (sd->sd_nodes[i][0] == '\0')
457 if (clnt_adddrvs(sd->sd_nodes[i], sp, dd, now, genid,
475 if (!(MD_MNSET_DESC(sd)) && !MD_ATSET_DESC(sd)) {
484 if (!(sd->sd_flags & MD_SR_MB_DEVID) && !(MD_MNSET_DESC(sd))) {
490 if (sd->sd_nodes[i][0] == '\0')
493 if (clnt_upd_sr_flags(sd->sd_nodes[i],
494 sp, (sd->sd_flags | MD_SR_MB_DEVID), ep))
567 if ((curdd == NULL) && (MD_MNSET_DESC(sd))) {
574 nd = sd->sd_nodelist;
593 if ((MD_MNSET_DESC(sd)) && (curdd == NULL)) {
604 if (MD_MNSET_DESC(sd)) {
605 nd = sd->sd_nodelist;
610 sd->sd_mn_mynode->nd_nodeid)) {
616 sd->sd_mn_mynode->nd_nodename,
617 sd->sd_mn_mynode->nd_nodeid, ep)) {
636 sd->sd_nodelist, MD_NR_JOIN, NULL, ep)) {
658 if (sd->sd_nodes[i][0] == '\0')
661 if (clnt_upd_dr_flags(sd->sd_nodes[i], sp, dd, MD_DR_OK,
679 nd = sd->sd_nodelist;
700 nd = sd->sd_nodelist;
718 if (MD_MNSET_DESC(sd)) {
719 nd = sd->sd_nodelist;
733 if (sd->sd_nodes[i][0] == '\0')
736 if (clnt_unlock_set(sd->sd_nodes[i],
751 if (!(MD_MNSET_DESC(sd))) {
756 if (MD_MNSET_DESC(sd)) {
766 if (!(MD_MNSET_DESC(sd))) {
774 max_genid = sd->sd_genid;
793 if ((MD_MNSET_DESC(sd)) && (curdd == NULL)) {
794 nd = sd->sd_nodelist;
807 sd->sd_nodelist, MD_NR_WITHDRAW,
814 sd->sd_mn_mynode->nd_nodeid) {
837 nd = sd->sd_nodelist;
888 if ((curdd == NULL) && !(MD_MNSET_DESC(sd))) {
902 if (!(MD_MNSET_DESC(sd)) && !MD_ATSET_DESC(sd)) {
910 if (MD_MNSET_DESC(sd)) {
911 nd = sd->sd_nodelist;
922 if (sd->sd_nodes[i][0] == '\0')
925 if (clnt_deldrvs(sd->sd_nodes[i], sp, dd,
931 resync_genid(sp, sd, max_genid, 0, NULL);
936 nd = sd->sd_nodelist;
956 if (MD_MNSET_DESC(sd)) {
973 nd = sd->sd_nodelist;
983 if (sd->sd_nodes[i][0] == '\0')
986 if (clnt_unlock_set(sd->sd_nodes[i], cl_sk, &xep))
1000 if (!(MD_MNSET_DESC(sd))) {
1019 md_set_desc *sd;
1036 if ((sd = metaget_setdesc(sp, ep)) == NULL)
1093 now = sd->sd_ctime;
1094 genid = sd->sd_genid;
1129 sd->sd_mn_mynode->nd_nodename,
1130 sd->sd_mn_mynode->nd_nodeid, ep))
1133 sd->sd_mn_master_nodeid = sd->sd_mn_mynode->nd_nodeid;
1135 (void) strncpy(sd->sd_mn_master_nodenm,
1136 sd->sd_mn_mynode->nd_nodename,
1142 if (clnt_upd_nr_flags(nodename, sp, sd->sd_nodelist,
1185 max_genid = sd->sd_genid;
1189 if (!MD_ATSET_DESC(sd)) {
1202 resync_genid(sp, sd, max_genid, 0, NULL);
1229 md_set_desc *sd;
1253 if ((sd = metaget_setdesc(sp, ep)) == NULL)
1283 if (MD_MNSET_DESC(sd)) {
1284 nd = sd->sd_nodelist;
1306 nd = sd->sd_nodelist;
1320 nd = sd->sd_nodelist;
1333 nd = sd->sd_nodelist;
1360 if (sd->sd_nodes[i][0] == '\0')
1363 if (strcmp(sd->sd_nodes[i], mynode()) == 0)
1366 has_set = nodehasset(sp, sd->sd_nodes[i], NHS_NSTG_EQ,
1382 sp->setno, sd->sd_nodes[i], NULL,
1466 if (!(MD_MNSET_DESC(sd))) {
1470 if (sd->sd_nodes[i][0] == '\0')
1473 if (clnt_lock_set(sd->sd_nodes[i], sp, ep)) {
1481 if ((deldrvcnt == 0) && (MD_MNSET_DESC(sd))) {
1509 if (MD_MNSET_DESC(sd)) {
1510 nd = sd->sd_nodelist;
1523 if (sd->sd_nodes[i][0] == '\0')
1526 if (clnt_upd_dr_flags(sd->sd_nodes[i], sp, dd,
1597 if ((deldrvcnt == 0) && (MD_MNSET_DESC(sd))) {
1604 nd = sd->sd_nodelist;
1621 if (MD_MNSET_DESC(sd)) {
1622 nd = sd->sd_nodelist;
1634 if (sd->sd_nodes[i][0] == '\0')
1637 if (clnt_deldrvs(sd->sd_nodes[i], sp, dd, ep) == -1)
1651 if (!(MD_MNSET_DESC(sd)) && !MD_ATSET_DESC(sd)) {
1676 if (MD_MNSET_DESC(sd)) {
1677 nd = sd->sd_nodelist;
1705 sd->sd_nodelist, MD_NR_WITHDRAW,
1733 nd = sd->sd_nodelist;
1755 nd = sd->sd_nodelist;
1772 if (MD_MNSET_DESC(sd)) {
1773 nd = sd->sd_nodelist;
1787 if (sd->sd_nodes[i][0] == '\0')
1790 if (clnt_unlock_set(sd->sd_nodes[i],
1805 if (!(MD_MNSET_DESC(sd))) {
1810 if (MD_MNSET_DESC(sd)) {
1820 if (!(MD_MNSET_DESC(sd))) {
1828 max_genid = sd->sd_genid;
1832 if (MD_MNSET_DESC(sd)) {
1833 nd = sd->sd_nodelist;
1844 sd->sd_mn_master_nodenm,
1845 sd->sd_mn_master_nodeid, &xep)) {
1862 if (MD_MNSET_DESC(sd)) {
1863 nd = sd->sd_nodelist;
1906 if (sd->sd_nodes[i][0] == '\0')
1910 if (clnt_getset(sd->sd_nodes[i], sp->setname,
1936 if (clnt_adddrvs(sd->sd_nodes[i], sp, dd,
1958 nd = sd->sd_nodelist;
1972 nd = sd->sd_nodelist;
2012 &sd->sd_ctime, ddp->dd_dbcnt, ddp->dd_dbsize,
2025 if (!(MD_MNSET_DESC(sd)) && !MD_ATSET_DESC(sd)) {
2041 if (MD_MNSET_DESC(sd)) {
2042 nd = sd->sd_nodelist;
2059 nd = sd->sd_nodelist;
2077 if (MD_MNSET_DESC(sd)) {
2080 nd = sd->sd_nodelist;
2099 sd->sd_nodelist, MD_NR_JOIN, NULL, &xep)) {
2119 if (MD_MNSET_DESC(sd)) {
2120 nd = sd->sd_nodelist;
2137 if (sd->sd_nodes[i][0] == '\0')
2140 if (clnt_upd_dr_flags(sd->sd_nodes[i], sp, dd,
2147 resync_genid(sp, sd, max_genid, 0, NULL);
2156 nd = sd->sd_nodelist;
2176 nd = sd->sd_nodelist;
2194 if (MD_MNSET_DESC(sd)) {
2195 nd = sd->sd_nodelist;
2205 if (sd->sd_nodes[i][0] == '\0')
2208 if (clnt_unlock_set(sd->sd_nodes[i], cl_sk, &xep))
2222 if (!(MD_MNSET_DESC(sd))) {