/titanic_41/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_mirror_resync.c | 106 if (metaioctl(MD_IOCSETSYNC, &ri, &ri.mde, mirnp->cname) != 0) in meta_mirror_resync() 107 return (mdstealerror(ep, &ri.mde)); in meta_mirror_resync() 308 if (metaioctl(MD_IOCGETSYNC, &ri, &ri.mde, in meta_mirror_resync_all() 310 (void) mdstealerror(ep, &ri.mde); in meta_mirror_resync_all() 347 md_error_t mde = mdnullerror; in meta_mn_mirror_resync_all() local 354 if ((sp = metasetnosetname(setno, &mde)) == NULL) { in meta_mn_mirror_resync_all() 355 mde_perror(&mde, ""); in meta_mn_mirror_resync_all() 359 if (!(meta_is_mn_set(sp, &mde))) { in meta_mn_mirror_resync_all() 360 mde_perror(&mde, ""); in meta_mn_mirror_resync_all() 365 if ((fval = md_daemonize(sp, &mde)) != 0) { in meta_mn_mirror_resync_all() [all …]
|
H A D | meta_namespace.c | 66 if (metaioctl(MD_IOCGET_NM, &nm, &nm.mde, NULL) != 0) { in meta_getnmentbykey() 67 (void) mdstealerror(ep, &nm.mde); in meta_getnmentbykey() 111 if (metaioctl(MD_IOCGET_HSP_NM, &nm, &nm.mde, NULL) != 0) { in meta_gethspnmentbyid() 112 (void) mdstealerror(ep, &nm.mde); in meta_gethspnmentbyid() 154 if (metaioctl(MD_IOCGET_HSP_NM, &nm, &nm.mde, NULL) != 0) { in meta_gethspnmentbyname() 155 (void) mdstealerror(ep, &nm.mde); in meta_gethspnmentbyname() 192 if (metaioctl(MD_IOCGET_DIDMIN, &nm, &nm.mde, NULL) != 0) { in meta_getdidminorbykey() 193 (void) mdstealerror(ep, &nm.mde); in meta_getdidminorbykey() 225 if (metaioctl(MD_IOCGET_DID, &nm, &nm.mde, NULL) != 0) { in meta_getdidbykey() 226 (void) mdstealerror(ep, &nm.mde); in meta_getdidbykey() [all …]
|
H A D | meta_mn_handlers.c | 287 ret = metaioctl(MD_IOCISOPEN, d, &(d->mde), NULL); in mdmn_do_clu() 310 if (mdismderror(&(d->mde), MDE_UNIT_NOT_SETUP)) { in mdmn_do_clu() 311 mdclrerror(&(d->mde)); in mdmn_do_clu() 342 while ((ret = metaioctl(MD_MN_SET_MM_OWNER, &setown, &setown.mde, NULL)) in mdmn_do_req_owner() 345 &setown.mde.info.md_error_info_t_u.sys_error; in mdmn_do_req_owner() 379 md_error_t mde = mdnullerror; in mdmn_do_choose_owner() local 394 if ((sp = metasetnosetname(setno, &mde)) == NULL) { in mdmn_do_choose_owner() 400 if ((sd = metaget_setdesc(sp, &mde)) == NULL) { in mdmn_do_choose_owner() 451 sizeof (chownermsg), &resp1, &mde); in mdmn_do_choose_owner() 474 md_error_t mde = mdnullerror; in mdmn_do_change_owner() local [all …]
|
H A D | meta_getdevs.c | 165 if (metaioctl(MD_IOCGET_DEVS, &mgd, &mgd.mde, namep->cname) != 0) { in meta_getdevs() 166 if (mgd.mde.info.errclass == MDEC_SYS) { in meta_getdevs() 167 ip = &mgd.mde.info.md_error_info_t_u.sys_error; in meta_getdevs() 173 (void) mdstealerror(ep, &mgd.mde); in meta_getdevs() 184 if (metaioctl(MD_IOCGET_DEVS, &mgd, &mgd.mde, namep->cname) != 0) { in meta_getdevs() 185 if (mgd.mde.info.errclass == MDEC_SYS) { in meta_getdevs() 186 ip = &mgd.mde.info.md_error_info_t_u.sys_error; in meta_getdevs() 192 (void) mdstealerror(ep, &mgd.mde); in meta_getdevs() 510 if (metaioctl(MD_IOCGET_NUM, &gn, &gn.mde, NULL) != 0) { in meta_get_names() 511 if (mdiserror(&gn.mde, MDE_UNIT_NOT_FOUND)) { in meta_get_names() [all …]
|
H A D | meta_devadm.c | 249 nm.mde = mdnullerror; in update_locator_namespace() 257 if (metaioctl(MD_IOCUPD_LOCNM, &nm, &nm.mde, NULL) != 0) { in update_locator_namespace() 258 (void) mdstealerror(ep, &nm.mde); in update_locator_namespace() 286 nm.mde = mdnullerror; in meta_update_namespace() 296 if (metaioctl(MD_IOCUPD_NM, &nm, &nm.mde, NULL) != 0) { in meta_update_namespace() 297 (void) mdstealerror(ep, &nm.mde); in meta_update_namespace() 645 nm.mde = mdnullerror; in pathname_reload() 649 if (metaioctl(MD_IOCNXTKEY_NM, &nm, &nm.mde, NULL) != 0) { in pathname_reload() 650 (void) mdstealerror(ep, &nm.mde); in pathname_reload() 849 if (metaioctl(MD_IOCDID_STAT, &ds, &ds.mde, NULL) != 0) { in pathname_reload() [all …]
|
H A D | meta_hotspares.c | 75 if (metaioctl(MD_IOCGET_NUM, &gn, &gn.mde, NULL) != 0) { in meta_get_hsp_names() 76 if (mdiserror(&gn.mde, MDE_UNIT_NOT_FOUND)) { in meta_get_hsp_names() 77 mdclrerror(&gn.mde); in meta_get_hsp_names() 79 (void) mdstealerror(ep, &gn.mde); in meta_get_hsp_names() 91 if (metaioctl(MD_IOCGET_NUM, &gn, &gn.mde, NULL) != 0) { in meta_get_hsp_names() 92 (void) mdstealerror(ep, &gn.mde); in meta_get_hsp_names() 144 if (metaioctl(MD_IOCGET, &mig, &mig.mde, hspnp->hspname) != 0) { in get_hspinfo() 145 (void) mdstealerror(ep, &mig.mde); in get_hspinfo() 152 if (metaioctl(MD_IOCGET, &mig, &mig.mde, hspnp->hspname) != 0) { in get_hspinfo() 153 (void) mdstealerror(ep, &mig.mde); in get_hspinfo() [all …]
|
H A D | meta_userflags.c | 91 if (metaioctl(MD_IOCSET_FLAGS, &msu, &msu.mde, np->cname) != 0) in meta_setuserflags() 92 return (mdstealerror(ep, &msu.mde)); in meta_setuserflags()
|
H A D | meta_attach.c | 66 if (metaioctl(MD_IOCGROW, &mgp, &mgp.mde, namep->cname) != 0) in meta_concat_generic() 67 return (mdstealerror(ep, &mgp.mde)); in meta_concat_generic()
|
H A D | meta_raid_resync.c | 67 if (metaioctl(MD_IOCSETSYNC, &ri, &ri.mde, raidnp->cname) != 0) in meta_raid_resync() 68 return (mdstealerror(ep, &ri.mde)); in meta_raid_resync()
|
H A D | meta_metad_subr.c | 485 if (metaioctl(MD_IOCGET_NM, &nm, &nm.mde, in sr_drvs() 487 if (! mdissyserror(&nm.mde, ENOENT)) { in sr_drvs() 488 mdclrerror(&nm.mde); in sr_drvs() 501 ! mdissyserror(&nm.mde, ENOENT)) { in sr_drvs() 512 mdclrerror(&nm.mde); in sr_drvs() 532 if (metaioctl(MD_IOCGET_NM, &nm, &nm.mde, in sr_drvs() 534 if (! mdissyserror(&nm.mde, ENOENT)) { in sr_drvs() 535 mdclrerror(&nm.mde); in sr_drvs() 541 ! mdissyserror(&nm.mde, ENOENT)) in sr_drvs() 545 mdclrerror(&nm.mde); in sr_drvs() [all …]
|
H A D | meta_sp.c | 471 if (metaioctl(MD_IOC_SPSTATUS, &status_params, &status_params.mde, in meta_sp_setstatus() 473 (void) mdstealerror(ep, &status_params.mde); in meta_sp_setstatus() 2507 if (metaioctl(iocval, &update_params, &update_params.mde, in meta_sp_update_wm_common() 2509 (void) mdstealerror(ep, &update_params.mde); in meta_sp_update_wm_common() 2626 &read_params.mde, compnp->cname) != 0) { in meta_sp_read_wm() 2630 return (mdstealerror(ep, &read_params.mde)); in meta_sp_read_wm() 3016 md_error_t mde; in meta_sp_can_create_sps() local 3020 &extent_listp, &mde); in meta_sp_can_create_sps() 3034 meta_sp_get_default_alignment(mdsetnamep, mdnamep, &mde)); in meta_sp_can_create_sps() 3107 md_error_t mde; in meta_sp_get_free_space() local [all …]
|
H A D | meta_reset.c | 62 if (metaioctl(MD_IOCRESET, &mir, &mir.mde, np->cname) != 0) in meta_reset() 63 return (mdstealerror(ep, &mir.mde)); in meta_reset()
|
H A D | meta_mirror.c | 164 if (metaioctl(MD_IOCGETSYNC, &ri, &ri.mde, mirnp->cname) != 0) { in meta_get_mirror_common() 165 (void) mdstealerror(ep, &ri.mde); in meta_get_mirror_common() 1438 if (metaioctl(MD_IOCONLINE, &mio, &mio.mde, NULL) != 0) in meta_mirror_online() 1439 return (mdstealerror(ep, &mio.mde)); in meta_mirror_online() 1519 if (metaioctl(MD_IOCOFFLINE, &mio, &mio.mde, NULL) != 0) in meta_mirror_offline() 1520 return (mdstealerror(ep, &mio.mde)); in meta_mirror_offline() 1611 if (metaioctl(MD_IOCATTACH, &att, &att.mde, NULL) != 0) { in meta_mirror_attach() 1616 return (mdstealerror(ep, &att.mde)); in meta_mirror_attach() 1687 if (metaioctl(MD_IOCDETACH, &detach, &detach.mde, NULL) != 0) in meta_mirror_detach() 1688 return (mdstealerror(ep, &detach.mde)); in meta_mirror_detach() [all …]
|
H A D | meta_mn_subr.c | 133 md_error_t mde = mdnullerror; in meta_ping_mnset() local 138 sizeof (data), &resp, &mde); in meta_ping_mnset() 797 while ((rval = metaioctl(MD_MN_SET_MM_OWNER, ownpar, &ownpar->mde, in meta_mn_change_owner() 800 &ownpar->mde.info.md_error_info_t_u.sys_error; in meta_mn_change_owner() 827 &ownstat->mde, NULL)) != 0) { in meta_mn_change_owner()
|
H A D | meta_raid.c | 220 if (metaioctl(MD_IOCGETSYNC, &ri, &ri.mde, raidnp->cname) != 0) { in meta_get_raid_common() 221 (void) mdstealerror(ep, &ri.mde); in meta_get_raid_common() 1396 if (metaioctl(MD_IOCGROW, &mgp, &mgp.mde, NULL) != 0) { in meta_raid_attach() 1397 (void) mdstealerror(ep, &mgp.mde); in meta_raid_attach() 1496 if (metaioctl(MD_IOCCHANGE, &msp, &msp.mde, raidnp->cname) != 0) in meta_raid_set_params() 1497 return (mdstealerror(ep, &msp.mde)); in meta_raid_set_params() 1701 if (metaioctl(MD_IOCREPLACE, ¶ms, ¶ms.mde, NULL) != 0) { in meta_raid_replace() 1703 return (mdstealerror(ep, ¶ms.mde)); in meta_raid_replace() 1817 if (metaioctl(MD_IOCREPLACE, ¶ms, ¶ms.mde, NULL) != 0) in meta_raid_enable() 1818 return (mdstealerror(ep, ¶ms.mde)); in meta_raid_enable() [all …]
|
/titanic_41/usr/src/uts/common/sys/lvm/ |
H A D | mdio.h | 172 md_error_t mde; member 178 md_error_t mde; member 184 md_error_t mde; member 192 md_error_t mde; member 200 md_error_t mde; member 208 md_error_t mde; /* Error return */ member 217 md_error_t mde; /* Error return */ member 226 md_error_t mde; /* Error return */ member 235 md_error_t mde; /* Error return */ member 243 md_error_t mde; member [all …]
|
H A D | md_hotspares.h | 51 md_error_t mde; /* error return */ member 72 md_error_t mde; /* error return */ member
|
/titanic_41/usr/src/uts/common/io/lvm/md/ |
H A D | md_rename.c | 198 (void) mdsyserror(&rtxnp->mde, EINVAL); in md_rename_lock() 214 (void) mdmderror(&rtxnp->mde, MDE_UNIT_NOT_SETUP, mnum); in md_rename_lock() 220 (void) mdmderror(&rtxnp->mde, MDE_UNIT_NOT_SETUP, mnum); in md_rename_lock() 375 (void) mdmderror(&rtxnp->mde, MDE_UNIT_NOT_SETUP, in md_rename_listfolks() 390 (void) mdmderror(&rtxnp->mde, MDE_RENAME_SOURCE_BAD, in md_rename_listfolks() 405 &rtxnp->mde); in md_rename_listfolks() 415 &rtxnp->mde); in md_rename_listfolks() 419 if (mdisok(&rtxnp->mde)) { in md_rename_listfolks() 420 (void) mdsyserror(&rtxnp->mde, ENOMEM); in md_rename_listfolks() 448 (void) mdmderror(&rtxnp->mde, MDE_UNIT_NOT_SETUP, in md_rename_listself() [all …]
|
H A D | md_ioctl.c | 226 mdclrerror(&nm->mde); in setnm_ioctl() 231 if (md_snarf_db_set(MD_LOCAL_SET, &nm->mde) != 0) in setnm_ioctl() 238 return (mdmddberror(&nm->mde, MDE_DB_STALE, NODEV32, in setnm_ioctl() 293 0, &nm->mde); in setnm_ioctl() 298 if ((((int)nm->key) < 0) && mdisok(&nm->mde)) { in setnm_ioctl() 299 err = mdmddberror(&nm->mde, MDE_DB_NOSPACE, NODEV32, nm->setno); in setnm_ioctl() 327 mdclrerror(&nm->mde); in getnm_ioctl() 329 if (md_snarf_db_set(MD_LOCAL_SET, &nm->mde) != 0) in getnm_ioctl() 446 mdclrerror(&nm->mde); in gethspnm_ioctl() 448 if (md_snarf_db_set(MD_LOCAL_SET, &nm->mde) != 0) in gethspnm_ioctl() [all …]
|
/titanic_41/usr/src/uts/common/io/lvm/mirror/ |
H A D | mirror_ioctl.c | 106 mirror_getun(minor_t mnum, md_error_t *mde, int flags, IOLOCK *lock) in mirror_getun() argument 113 (void) mdmderror(mde, MDE_INVAL_UNIT, mnum); in mirror_getun() 119 (void) mdmddberror(mde, MDE_DB_STALE, mnum, setno); in mirror_getun() 127 (void) mdmderror(mde, MDE_UNIT_ALREADY_SETUP, mnum); in mirror_getun() 134 (void) mdmderror(mde, MDE_UNIT_NOT_SETUP, mnum); in mirror_getun() 152 (void) mdmderror(mde, MDE_NOT_MM, mnum); in mirror_getun() 177 mdclrerror(&msp->mde); in mirror_set() 179 if (mirror_getun(mnum, &msp->mde, NO_OLD, NULL) == NULL) in mirror_set() 194 return (mdmderror(&msp->mde, MDE_UNIT_TOO_LARGE, mnum)); in mirror_set() 208 return (mddbstatus2error(&msp->mde, (int)recid, in mirror_set() [all …]
|
/titanic_41/usr/src/uts/common/io/lvm/hotspares/ |
H A D | hotspares.c | 111 return (mdhsperror(&shs->mde, MDE_HSP_UNIT_TOO_LARGE, in seths_create_hsp() 125 return (mdhsperror(&shs->mde, MDE_HSP_CREATE_FAILURE, in seths_create_hsp() 213 return (mddeverror(&shs->mde, MDE_NAME_SPACE, in seths_add() 223 return (mddeverror(&shs->mde, MDE_MULTNM, in seths_add() 231 return (mddeverror(&shs->mde, MDE_INVAL_HS, in seths_add() 252 return (mdhserror(&shs->mde, MDE_HS_UNIT_TOO_LARGE, in seths_add() 264 return (mdhserror(&shs->mde, MDE_HS_CREATE_FAILURE, in seths_add() 304 return (mdhsperror(&shs->mde, MDE_HSP_CREATE_FAILURE, in seths_add() 336 return (mdhserror(&shs->mde, MDE_HS_INUSE, in seths_add() 362 return (mdhsperror(&shs->mde, MDE_HSP_CREATE_FAILURE, in seths_add() [all …]
|
/titanic_41/usr/src/uts/common/io/lvm/trans/ |
H A D | trans_ioctl.c | 69 trans_getun(minor_t mnum, md_error_t *mde, int flags, IOLOCK *lock) in trans_getun() argument 76 (void) mdmderror(mde, MDE_INVAL_UNIT, mnum); in trans_getun() 82 (void) mdmddberror(mde, MDE_DB_STALE, mnum, setno); in trans_getun() 90 (void) mdmderror(mde, MDE_UNIT_ALREADY_SETUP, mnum); in trans_getun() 97 (void) mdmderror(mde, MDE_UNIT_NOT_SETUP, mnum); in trans_getun() 115 (void) mdmderror(mde, MDE_NOT_MT, mnum); in trans_getun() 138 mdclrerror(&migp->mde); in trans_get_transstats() 172 mdclrerror(&migp->mde); in trans_test_trygetblk() 175 un = trans_getun(migp->id, &migp->mde, in trans_test_trygetblk() 283 mdclrerror(&migp->mde); in trans_test_trypage() [all …]
|
/titanic_41/usr/src/uts/common/io/lvm/raid/ |
H A D | raid_ioctl.c | 142 raid_getun(minor_t mnum, md_error_t *mde, int flags, IOLOCK *lock) in raid_getun() argument 149 (void) mdmderror(mde, MDE_INVAL_UNIT, mnum); in raid_getun() 155 (void) mdmddberror(mde, MDE_DB_STALE, mnum, setno); in raid_getun() 163 (void) mdmderror(mde, MDE_UNIT_ALREADY_SETUP, mnum); in raid_getun() 170 (void) mdmderror(mde, MDE_UNIT_NOT_SETUP, mnum); in raid_getun() 188 (void) mdmderror(mde, MDE_NOT_RAID, mnum); in raid_getun() 833 mdclrerror(&mrp->mde); in raid_regen() 839 return (mdmderror(&mrp->mde, MDE_IN_USE, mnum)); in raid_regen() 845 return (mdmderror(&mrp->mde, MDE_RESYNC_ACTIVE, mnum)); in raid_regen() 850 return (mdmderror(&mrp->mde, MDE_IN_USE, mnum)); in raid_regen() [all …]
|
/titanic_41/usr/src/uts/common/io/lvm/stripe/ |
H A D | stripe_ioctl.c | 80 mdclrerror(¶ms->mde); in stripe_replace() 85 return (mdmderror(¶ms->mde, MDE_RESYNC_ACTIVE, mnum)); in stripe_replace() 152 mdep = &msp->mde; in stripe_set() 309 mdep = &migp->mde; in stripe_get() 345 mdclrerror(&mirp->mde); in stripe_reset() 348 return (mdmderror(&mirp->mde, MDE_INVAL_UNIT, mnum)); in stripe_reset() 351 return (mdmddberror(&mirp->mde, MDE_DB_STALE, mnum, setno)); in stripe_reset() 355 return (mdmderror(&mirp->mde, MDE_UNIT_NOT_SETUP, mnum)); in stripe_reset() 363 return (mdmderror(&mirp->mde, MDE_IN_USE, mnum)); in stripe_reset() 373 return (mdmderror(&mirp->mde, MDE_IS_OPEN, mnum)); in stripe_reset() [all …]
|
/titanic_41/usr/src/uts/common/io/lvm/softpart/ |
H A D | sp_ioctl.c | 106 sp_getun(minor_t mnum, md_error_t *mde) in sp_getun() argument 114 (void) mdmderror(mde, MDE_INVAL_UNIT, mnum); in sp_getun() 119 (void) mdmddberror(mde, MDE_DB_STALE, mnum, setno); in sp_getun() 126 (void) mdmderror(mde, MDE_UNIT_NOT_SETUP, mnum); in sp_getun() 133 (void) mdmderror(mde, MDE_NOT_SP, mnum); in sp_getun() 172 mdep = &msp->mde; in sp_setstatus() 246 mdep = &mup->mde; in sp_update_watermarks() 378 mdep = &mrp->mde; in sp_read_watermark() 461 mdep = &msp->mde; in sp_set() 601 mdep = &migp->mde; in sp_get() [all …]
|