/titanic_41/usr/src/uts/common/io/lvm/hotspares/ |
H A D | hotspares.c | 94 mddb_recid_t recid; in seths_create_hsp() local 114 recid = mddb_createrec(sizeof (hot_spare_pool_ond_t), typ1, in seths_create_hsp() 119 recid = mddb_createrec(sizeof (hot_spare_pool_ond_t), typ1, in seths_create_hsp() 124 if (recid < 0) { in seths_create_hsp() 130 hsp = (hot_spare_pool_t *)mddb_getrecaddr_resize(recid, sizeof (*hsp), in seths_create_hsp() 134 hsp->hsp_record_id = recid; in seths_create_hsp() 142 mddb_commitrec_wrapper(recid); in seths_create_hsp() 166 mddb_recid_t recid; in seths_add() local 255 recid = mddb_createrec(HS_ONDSK_STR_SIZE, typ1, HS_REC, in seths_add() 259 recid = mddb_createrec(HS_ONDSK_STR_SIZE, typ1, HS_REC, in seths_add() [all …]
|
/titanic_41/usr/src/uts/common/io/lvm/trans/ |
H A D | mdtrans.c | 782 mddb_recid_t recid; in trans_snarf() local 803 recid = mddb_makerecid(setno, 0); in trans_snarf() 804 while ((recid = mddb_getnextrec(recid, typ1, TRANS_REC)) > 0) { in trans_snarf() 805 un = (mt_unit_t *)mddb_getrecaddr(recid); in trans_snarf() 807 if (mddb_getrecprivate(recid) & MD_PRV_CLEANUP) { in trans_snarf() 809 recid = mddb_makerecid(setno, 0); in trans_snarf() 815 recid = mddb_makerecid(setno, 0); in trans_snarf() 816 while ((recid = mddb_getnextrec(recid, typ1, LOG_REC)) > 0) { in trans_snarf() 817 if (mddb_getrecprivate(recid) & MD_PRV_CLEANUP) { in trans_snarf() 818 ul = (ml_unit_t *)mddb_getrecaddr(recid); in trans_snarf() [all …]
|
H A D | trans_log.c | 361 ldl_findlog(mddb_recid_t recid) in ldl_findlog() argument 370 if (ul->un_recid == recid) in ldl_findlog() 420 mddb_recid_t recid; in ldl_create() local 444 recid = mddb_createrec(ML_UNIT_ONDSZ, typ1, LOG_REC, in ldl_create() 446 if (recid < 0) in ldl_create() 447 return (recid); in ldl_create() 448 mddb_setrecprivate(recid, MD_PRV_GOTIT); in ldl_create() 450 ul = (ml_unit_t *)mddb_getrecaddr_resize(recid, sizeof (*ul), 0); in ldl_create() 452 ul->un_recid = recid; in ldl_create() 480 return (recid); in ldl_create()
|
/titanic_41/usr/src/uts/common/io/lvm/md/ |
H A D | md.c | 871 mddb_recid_t recid; in snarf_user_data() local 874 recid = mddb_makerecid(setno, 0); in snarf_user_data() 875 while ((recid = mddb_getnextrec(recid, MDDB_USER, 0)) > 0) { in snarf_user_data() 876 if (mddb_getrecprivate(recid) & MD_PRV_GOTIT) in snarf_user_data() 879 status = mddb_getrecstatus(recid); in snarf_user_data() 884 mddb_setrecprivate(recid, MD_PRV_PENDDEL); in snarf_user_data() 890 mddb_setrecprivate(recid, MD_PRV_GOTIT); in snarf_user_data() 1046 mddb_recid_t recid; in md_snarf_db_set() local 1175 recid = mddb_makerecid(setno, 0); in md_snarf_db_set() 1176 while ((recid = mddb_getnextrec(recid, MDDB_ALL, 0)) > 0) { in md_snarf_db_set() [all …]
|
H A D | md_names.c | 166 mddb_recid_t recid; in cleanup_unused_rec() local 173 recid = mddb_makerecid(setno, 0); in cleanup_unused_rec() 174 while ((recid = mddb_getnextrec(recid, hdr, 0)) > 0) in cleanup_unused_rec() 175 if (! (mddb_getrecprivate(recid) & MD_PRV_GOTIT)) in cleanup_unused_rec() 176 mddb_setrecprivate(recid, MD_PRV_PENDDEL); in cleanup_unused_rec() 178 recid = mddb_makerecid(setno, 0); in cleanup_unused_rec() 179 while ((recid = mddb_getnextrec(recid, notshr, 0)) > 0) in cleanup_unused_rec() 180 if (! (mddb_getrecprivate(recid) & MD_PRV_GOTIT)) in cleanup_unused_rec() 181 mddb_setrecprivate(recid, MD_PRV_PENDDEL); in cleanup_unused_rec() 183 recid = mddb_makerecid(setno, 0); in cleanup_unused_rec() [all …]
|
H A D | md_ioctl.c | 3663 mddb_recid_t recid; in md_set_vtoc() local 3703 recid = un->c.un_vtoc_id; in md_set_vtoc() 3704 status = mddb_getrecstatus(recid); in md_set_vtoc() 3713 if ((mddb_getrecsize(recid) >= sizeof (struct vtoc)) && in md_set_vtoc() 3715 v = mddb_getrecaddr(recid); in md_set_vtoc() 3717 mddb_commitrec_wrapper(recid); in md_set_vtoc() 3718 recids[0] = recid; in md_set_vtoc() 3728 mddb_deleterec_wrapper(recid); in md_set_vtoc() 3732 recid = mddb_createrec(sizeof (struct vtoc), MDDB_VTOC, 0, in md_set_vtoc() 3735 if (recid < 0) { in md_set_vtoc() [all …]
|
H A D | md_subr.c | 1494 mddb_commitrec_wrapper(mddb_recid_t recid) in mddb_commitrec_wrapper() argument 1500 while (mddb_commitrec(recid)) { in mddb_commitrec_wrapper() 1517 setno = mddb_getsetnum(recid); in mddb_commitrec_wrapper() 1576 mddb_deleterec_wrapper(mddb_recid_t recid) in mddb_deleterec_wrapper() argument 1582 while (mddb_deleterec(recid)) { in mddb_deleterec_wrapper() 1599 setno = mddb_getsetnum(recid); in mddb_deleterec_wrapper()
|
H A D | md_mddb.c | 8774 id = ol->recid; in mddb_getoptloc() 12517 mddb_recid_t recid, ids[3]; in update_setname() local 12559 NM_NOCOMMIT, &recid)) == NULL) { in update_setname() 12570 ids[0] = recid; in update_setname()
|
/titanic_41/usr/src/uts/common/io/lvm/softpart/ |
H A D | sp.c | 1277 mddb_recid_t recid; in sp_snarf() local 1297 recid = mddb_makerecid(setno, 0); in sp_snarf() 1303 while ((recid = mddb_getnextrec(recid, rec_type, 0)) > 0) { in sp_snarf() 1305 if (mddb_getrecprivate(recid) & MD_PRV_GOTIT) in sp_snarf() 1309 dep = mddb_getrecdep(recid); in sp_snarf() 1325 (mp_unit32_od_t *)mddb_getrecaddr(recid); in sp_snarf() 1340 un = (mp_unit_t *)mddb_getrecaddr(recid); in sp_snarf() 1347 un = (mp_unit_t *)mddb_getrecaddr(recid); in sp_snarf() 1361 mddb_setrecprivate(recid, MD_PRV_PENDDEL); in sp_snarf() 1366 mddb_setrecprivate(recid, MD_PRV_GOTIT); in sp_snarf() [all …]
|
H A D | sp_ioctl.c | 749 mddb_recid_t recid; in sp_grow() local 817 recid = mddb_createrec((size_t)mgp->size, rec_type, 0, in sp_grow() 821 recid = mddb_createrec((size_t)mgp->size, rec_type, 0, in sp_grow() 824 if (recid < 0) { in sp_grow() 825 rval = mddbstatus2error(mdep, (int)recid, mnum, setno); in sp_grow() 830 new_un = (mp_unit_t *)mddb_getrecaddr(recid); in sp_grow() 836 mddb_deleterec_wrapper(recid); in sp_grow() 860 MD_RECID(new_un) = recid; in sp_grow() 861 mddb_commitrec_wrapper(recid); in sp_grow()
|
/titanic_41/usr/src/cmd/mdb/common/modules/md/ |
H A D | dumphotspare.c | 36 int recid; in printhsp() local 58 if (mdb_vread(&recid, sizeof (int), hs_addr) != in printhsp() 63 mdb_printf("hsp_hotspares[%d]: %d", i, recid); in printhsp()
|
/titanic_41/usr/src/uts/common/io/lvm/stripe/ |
H A D | stripe.c | 823 mddb_recid_t recid; in stripe_snarf() local 842 recid = mddb_makerecid(setno, 0); in stripe_snarf() 844 while ((recid = mddb_getnextrec(recid, typ1, 0)) > 0) { in stripe_snarf() 845 if (mddb_getrecprivate(recid) & MD_PRV_GOTIT) in stripe_snarf() 848 dep = mddb_getrecdep(recid); in stripe_snarf() 864 (ms_unit32_od_t *)mddb_getrecaddr(recid); in stripe_snarf() 878 un = (ms_unit_t *)mddb_getrecaddr(recid); in stripe_snarf() 885 un = (ms_unit_t *)mddb_getrecaddr(recid); in stripe_snarf() 896 mddb_setrecprivate(recid, MD_PRV_PENDDEL); in stripe_snarf() 901 mddb_setrecprivate(recid, MD_PRV_GOTIT); in stripe_snarf() [all …]
|
/titanic_41/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_metad_subr.c | 66 url_addl(ur_recid_lst_t **urlpp, mddb_recid_t recid) in url_addl() argument 70 if ((*urlpp)->url_recid == recid) in url_addl() 78 (*urlpp)->url_recid = recid; in url_addl() 82 url_findl(ur_recid_lst_t *urlp, mddb_recid_t recid) in url_findl() argument 85 if (urlp->url_recid == recid) in url_findl() 417 sr_del_drv(md_set_record *sr, mddb_recid_t recid) in sr_del_drv() argument 434 METAD_SETUP_DR(MD_DB_DELETE, recid) in sr_del_drv() 438 dr_cache_del(sr, recid); in sr_del_drv() 861 sr_in_cache(mddb_recid_t recid) in sr_in_cache() argument 866 if (tsr->sr_selfid == recid) in sr_in_cache() [all …]
|
H A D | meta_mirror.c | 1149 optloc.recid = mm->un_rr_dirty_recid; in mirror_report()
|
/titanic_41/usr/src/uts/common/io/lvm/mirror/ |
H A D | mirror.c | 1778 mddb_recid_t recid; in mirror_cleanup() local 1799 recid = un->un_rr_dirty_recid; in mirror_cleanup() 1801 if (recid > 0) in mirror_cleanup() 1802 mddb_deleterec_wrapper(recid); in mirror_cleanup() 2039 mddb_recid_t recid, vtoc_id; in reset_mirror() local 2099 recid = un->un_rr_dirty_recid; in reset_mirror() 2136 if (recid != 0) in reset_mirror() 2137 mddb_deleterec_wrapper(recid); in reset_mirror() 5148 mddb_recid_t recid; in mirror_snarf() local 5165 recid = mddb_makerecid(setno, 0); in mirror_snarf() [all …]
|
H A D | mirror_resync.c | 716 mddb_recid_t recid; in create_unit_resync() local 739 recid = mddb_createrec(size, typ1, RESYNC_REC, in create_unit_resync() 741 if (recid < 0) { in create_unit_resync() 749 un->un_rr_dirty_recid = recid; in create_unit_resync() 750 orp = (optim_resync_t *)mddb_getrecaddr(recid); in create_unit_resync() 764 mddb_commitrec_wrapper(recid); in create_unit_resync() 768 mddb_setrecprivate(recid, MD_PRV_PENDCOM); in create_unit_resync() 3382 mddb_recid_t recid, old_recid; in mirror_resize_resync_regions() local 3404 recid = mddb_createrec(size, typ1, RESYNC_REC, in mirror_resize_resync_regions() 3406 if (recid < 0) in mirror_resize_resync_regions() [all …]
|
H A D | mirror_ioctl.c | 167 mddb_recid_t recid; in mirror_set() local 196 recid = mddb_createrec((size_t)msp->size, typ1, MIRROR_REC, in mirror_set() 204 recid = mddb_createrec((size_t)msp->size, typ1, MIRROR_REC, in mirror_set() 207 if (recid < 0) in mirror_set() 208 return (mddbstatus2error(&msp->mde, (int)recid, in mirror_set() 212 un = (mm_unit_t *)mddb_getrecaddr_resize(recid, sizeof (*un), 0); in mirror_set() 224 mddb_deleterec_wrapper(recid); in mirror_set() 233 MD_RECID(un) = recid; in mirror_set() 256 mddb_deleterec_wrapper(recid); in mirror_set() 265 mddb_deleterec_wrapper(recid); in mirror_set() [all …]
|
/titanic_41/usr/src/uts/common/io/lvm/raid/ |
H A D | raid.c | 3634 mddb_recid_t recid; in raid_snarf() local 3653 recid = mddb_makerecid(setno, 0); in raid_snarf() 3655 while ((recid = mddb_getnextrec(recid, typ1, 0)) > 0) { in raid_snarf() 3656 if (mddb_getrecprivate(recid) & MD_PRV_GOTIT) { in raid_snarf() 3660 dep = mddb_getrecdep(recid); in raid_snarf() 3675 (mr_unit32_od_t *)mddb_getrecaddr(recid); in raid_snarf() 3693 un = (mr_unit_t *)mddb_getrecaddr(recid); in raid_snarf() 3700 un = (mr_unit_t *)mddb_getrecaddr(recid); in raid_snarf() 3713 mddb_setrecprivate(recid, MD_PRV_PENDDEL); in raid_snarf() 3718 mddb_setrecprivate(recid, MD_PRV_GOTIT); in raid_snarf() [all …]
|
/titanic_41/usr/src/head/ |
H A D | meta.h | 1046 extern void sr_del_drv(md_set_record *sr, mddb_recid_t recid); 1049 extern void sr_cache_del(mddb_recid_t recid); 1051 extern void dr_cache_del(md_set_record *sr, mddb_recid_t recid); 1054 extern void mnnr_cache_del(md_mnset_record *sr, mddb_recid_t recid); 1069 extern void s_delrec(mddb_recid_t recid, md_error_t *ep);
|
/titanic_41/usr/src/uts/common/sys/lvm/ |
H A D | mdio.h | 644 int recid; /* really mddb_recid_t */ member
|