Searched defs:recid (Results 1 - 18 of 18) sorted by relevance

/illumos-gate/usr/src/cmd/mdb/common/modules/md/
H A Ddumphotspare.c36 int recid; local
58 if (mdb_vread(&recid, sizeof (int), hs_addr) !=
60 mdb_warn("failed to read recid at %p\n", hs_addr);
63 mdb_printf("hsp_hotspares[%d]: %d", i, recid);
/illumos-gate/usr/src/uts/common/io/lvm/trans/
H A Dtrans_log.c361 ldl_findlog(mddb_recid_t recid) argument
366 * Find a unit struct by database recid
370 if (ul->un_recid == recid)
420 mddb_recid_t recid; local
444 recid = mddb_createrec(ML_UNIT_ONDSZ, typ1, LOG_REC,
446 if (recid < 0)
447 return (recid);
448 mddb_setrecprivate(recid, MD_PRV_GOTIT);
450 ul = (ml_unit_t *)mddb_getrecaddr_resize(recid, sizeof (*ul), 0);
452 ul->un_recid = recid;
[all...]
H A Dmdtrans.c782 mddb_recid_t recid; local
803 recid = mddb_makerecid(setno, 0);
804 while ((recid = mddb_getnextrec(recid, typ1, TRANS_REC)) > 0) {
805 un = (mt_unit_t *)mddb_getrecaddr(recid);
807 if (mddb_getrecprivate(recid) & MD_PRV_CLEANUP) {
809 recid = mddb_makerecid(setno, 0);
815 recid = mddb_makerecid(setno, 0);
816 while ((recid = mddb_getnextrec(recid, typ
1141 mddb_recid_t recid; local
[all...]
/illumos-gate/usr/src/uts/common/io/lvm/softpart/
H A Dsp_ioctl.c540 /* set child recid and recids end marker */
749 mddb_recid_t recid; local
817 recid = mddb_createrec((size_t)mgp->size, rec_type, 0,
821 recid = mddb_createrec((size_t)mgp->size, rec_type, 0,
824 if (recid < 0) {
825 rval = mddbstatus2error(mdep, (int)recid, mnum, setno);
830 new_un = (mp_unit_t *)mddb_getrecaddr(recid);
836 mddb_deleterec_wrapper(recid);
860 MD_RECID(new_un) = recid;
861 mddb_commitrec_wrapper(recid);
[all...]
H A Dsp.c1277 mddb_recid_t recid; local
1297 recid = mddb_makerecid(setno, 0);
1303 while ((recid = mddb_getnextrec(recid, rec_type, 0)) > 0) {
1305 if (mddb_getrecprivate(recid) & MD_PRV_GOTIT)
1309 dep = mddb_getrecdep(recid);
1325 (mp_unit32_od_t *)mddb_getrecaddr(recid);
1340 un = (mp_unit_t *)mddb_getrecaddr(recid);
1347 un = (mp_unit_t *)mddb_getrecaddr(recid);
1361 mddb_setrecprivate(recid, MD_PRV_PENDDE
1732 mddb_recid_t recid; local
[all...]
/illumos-gate/usr/src/uts/common/io/lvm/hotspares/
H A Dhotspares.c94 mddb_recid_t recid; local
114 recid = mddb_createrec(sizeof (hot_spare_pool_ond_t), typ1,
119 recid = mddb_createrec(sizeof (hot_spare_pool_ond_t), typ1,
124 if (recid < 0) {
130 hsp = (hot_spare_pool_t *)mddb_getrecaddr_resize(recid, sizeof (*hsp),
134 hsp->hsp_record_id = recid;
142 mddb_commitrec_wrapper(recid);
166 mddb_recid_t recid; local
255 recid = mddb_createrec(HS_ONDSK_STR_SIZE, typ1, HS_REC,
259 recid
696 mddb_recid_t recid; local
1274 load_hotspare(set_t setno, mddb_recid_t recid) argument
1341 load_hotsparepool(set_t setno, mddb_recid_t recid) argument
1375 mddb_recid_t recid; local
1748 mddb_recid_t recid; local
[all...]
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_metad_subr.c66 url_addl(ur_recid_lst_t **urlpp, mddb_recid_t recid) argument
70 if ((*urlpp)->url_recid == recid)
78 (*urlpp)->url_recid = recid;
82 url_findl(ur_recid_lst_t *urlp, mddb_recid_t recid) argument
85 if (urlp->url_recid == recid)
417 sr_del_drv(md_set_record *sr, mddb_recid_t recid) argument
434 METAD_SETUP_DR(MD_DB_DELETE, recid)
438 dr_cache_del(sr, recid);
861 sr_in_cache(mddb_recid_t recid) argument
866 if (tsr->sr_selfid == recid)
1193 sr_cache_del(mddb_recid_t recid) argument
1242 dr_cache_del(md_set_record *sr, mddb_recid_t recid) argument
1326 mnnr_cache_del(md_mnset_record *mnsr, mddb_recid_t recid) argument
1985 s_delrec(mddb_recid_t recid, md_error_t *ep) argument
[all...]
/illumos-gate/usr/src/uts/common/io/lvm/md/
H A Dmd_ioctl.c1234 * Is recid a valid ?
3663 mddb_recid_t recid; local
3703 recid = un->c.un_vtoc_id;
3704 status = mddb_getrecstatus(recid);
3713 if ((mddb_getrecsize(recid) >= sizeof (struct vtoc)) &&
3715 v = mddb_getrecaddr(recid);
3717 mddb_commitrec_wrapper(recid);
3718 recids[0] = recid;
3728 mddb_deleterec_wrapper(recid);
3732 recid
3811 mddb_recid_t recid; local
4031 mddb_recid_t recid; local
[all...]
H A Dmd.c871 mddb_recid_t recid; local
874 recid = mddb_makerecid(setno, 0);
875 while ((recid = mddb_getnextrec(recid, MDDB_USER, 0)) > 0) {
876 if (mddb_getrecprivate(recid) & MD_PRV_GOTIT)
879 status = mddb_getrecstatus(recid);
884 mddb_setrecprivate(recid, MD_PRV_PENDDEL);
890 mddb_setrecprivate(recid, MD_PRV_GOTIT);
1046 mddb_recid_t recid; local
1175 recid
[all...]
H A Dmd_names.c166 mddb_recid_t recid; local
173 recid = mddb_makerecid(setno, 0);
174 while ((recid = mddb_getnextrec(recid, hdr, 0)) > 0)
175 if (! (mddb_getrecprivate(recid) & MD_PRV_GOTIT))
176 mddb_setrecprivate(recid, MD_PRV_PENDDEL);
178 recid = mddb_makerecid(setno, 0);
179 while ((recid = mddb_getnextrec(recid, notshr, 0)) > 0)
180 if (! (mddb_getrecprivate(recid)
453 alloc_entry( struct nm_next_hdr *nh, mddb_recid_t recid, size_t len, int shared, mddb_recid_t *id) argument
666 mddb_recid_t recid; local
764 mddb_recid_t recid; local
786 mddb_recid_t recid; local
806 mddb_recid_t recid; local
829 mddb_recid_t recid = rh->r_next_recid; local
903 mddb_recid_t recid = rh->r_next_recid; local
978 mddb_recid_t recid = rh->r_next_recid; local
1659 build_rec_hdr_list(struct nm_next_hdr *nh, mddb_recid_t recid, int shared) argument
3514 mddb_recid_t recid; local
[all...]
H A Dmd_subr.c1494 mddb_commitrec_wrapper(mddb_recid_t recid) argument
1500 while (mddb_commitrec(recid)) {
1517 setno = mddb_getsetnum(recid);
1576 mddb_deleterec_wrapper(mddb_recid_t recid) argument
1582 while (mddb_deleterec(recid)) {
1599 setno = mddb_getsetnum(recid);
3873 * - returns the recid of the efi record.
H A Dmd_mddb.c8774 id = ol->recid;
12517 mddb_recid_t recid, ids[3]; local
12559 NM_NOCOMMIT, &recid)) == NULL) {
12570 ids[0] = recid;
/illumos-gate/usr/src/uts/common/io/lvm/mirror/
H A Dmirror_ioctl.c167 mddb_recid_t recid; local
196 recid = mddb_createrec((size_t)msp->size, typ1, MIRROR_REC,
204 recid = mddb_createrec((size_t)msp->size, typ1, MIRROR_REC,
207 if (recid < 0)
208 return (mddbstatus2error(&msp->mde, (int)recid,
212 un = (mm_unit_t *)mddb_getrecaddr_resize(recid, sizeof (*un), 0);
224 mddb_deleterec_wrapper(recid);
233 MD_RECID(un) = recid;
256 mddb_deleterec_wrapper(recid);
265 mddb_deleterec_wrapper(recid);
[all...]
H A Dmirror_resync.c716 mddb_recid_t recid; local
739 recid = mddb_createrec(size, typ1, RESYNC_REC,
741 if (recid < 0) {
749 un->un_rr_dirty_recid = recid;
750 orp = (optim_resync_t *)mddb_getrecaddr(recid);
764 mddb_commitrec_wrapper(recid);
768 mddb_setrecprivate(recid, MD_PRV_PENDCOM);
3382 mddb_recid_t recid, old_recid; local
3404 recid = mddb_createrec(size, typ1, RESYNC_REC,
3406 if (recid <
3511 mddb_recid_t recid, old_recid; local
[all...]
H A Dmirror.c1454 /* Add two, this includes the mirror unit and the null recid */
1778 mddb_recid_t recid; local
1799 recid = un->un_rr_dirty_recid;
1801 if (recid > 0)
1802 mddb_deleterec_wrapper(recid);
2039 mddb_recid_t recid, vtoc_id; local
2099 recid = un->un_rr_dirty_recid;
2136 if (recid != 0)
2137 mddb_deleterec_wrapper(recid);
5148 mddb_recid_t recid; local
5599 mddb_recid_t recid; local
[all...]
/illumos-gate/usr/src/uts/common/io/lvm/stripe/
H A Dstripe.c823 mddb_recid_t recid; local
842 recid = mddb_makerecid(setno, 0);
844 while ((recid = mddb_getnextrec(recid, typ1, 0)) > 0) {
845 if (mddb_getrecprivate(recid) & MD_PRV_GOTIT)
848 dep = mddb_getrecdep(recid);
864 (ms_unit32_od_t *)mddb_getrecaddr(recid);
878 un = (ms_unit_t *)mddb_getrecaddr(recid);
885 un = (ms_unit_t *)mddb_getrecaddr(recid);
896 mddb_setrecprivate(recid, MD_PRV_PENDDE
1611 mddb_recid_t recid; local
[all...]
/illumos-gate/usr/src/uts/common/io/lvm/raid/
H A Draid.c3634 mddb_recid_t recid; local
3653 recid = mddb_makerecid(setno, 0);
3655 while ((recid = mddb_getnextrec(recid, typ1, 0)) > 0) {
3656 if (mddb_getrecprivate(recid) & MD_PRV_GOTIT) {
3660 dep = mddb_getrecdep(recid);
3675 (mr_unit32_od_t *)mddb_getrecaddr(recid);
3693 un = (mr_unit_t *)mddb_getrecaddr(recid);
3700 un = (mr_unit_t *)mddb_getrecaddr(recid);
3713 mddb_setrecprivate(recid, MD_PRV_PENDDE
4270 mddb_recid_t recid; local
[all...]
/illumos-gate/usr/src/uts/common/sys/lvm/
H A Dmdio.h644 int recid; /* really mddb_recid_t */ member in struct:mddb_optloc

Completed in 182 milliseconds