Lines Matching refs:lun
1546 IMA_UINT64 lun,
1560 if (pLunList->ll_luns[i].l_num == lun) {
1592 iscsi_lun_props_t lun;
1600 * get list of lun oids for all targets
1608 * for each lun, check if match is found
1612 * match found, break out of lun loop
1620 (void) memset(&lun, 0, sizeof (iscsi_lun_props_t));
1621 lun.lp_vers = ISCSI_INTERFACE_VERSION;
1622 lun.lp_tgt_oid = pLunList->ll_luns[j].l_tgt_oid;
1623 lun.lp_oid = pLunList->ll_luns[j].l_oid;
1633 * get lun properties
1641 if (ioctl(fd, ISCSI_LUN_PROPS_GET, &lun)) {
1653 pProps->associatedTargetOid.objectSequenceNumber = lun.lp_tgt_oid;
1654 pProps->targetLun = (IMA_UINT64)lun.lp_num;
1659 if (lun.lp_status == LunValid) {
1662 (void) strcat(lun.lp_pathname, ":");
1664 if ((strstr(lun.lp_pathname, "sd@") != NULL) ||
1665 (strstr(lun.lp_pathname, "ssd@") != NULL) ||
1666 (strstr(lun.lp_pathname, "disk@") != NULL)) {
1671 (void) strcat(lun.lp_pathname, "c,raw");
1678 if (hdl = di_devlink_init(lun.lp_pathname, DI_MAKE_LINK)) {
1680 (void) di_devlink_walk(hdl, NULL, lun.lp_pathname,
1768 * for this lun(deviceId) and put in uscsi.iu_oid
1870 * for this lun(deviceId) and put in uscsi.iu_oid
1962 * for this lun(deviceId) and put in uscsi.iu_oid
2570 /* get lun oid list for all targets */
2573 /* get lun oid list for single target */