Sun_sasScsiReportLUNs.c revision 2
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/Astatic HBA_STATUS
2N/A int chkDomainPort = 0;
2N/A int hbaPortFound = 0;
2N/A return (HBA_STATUS_ERROR_ARG);
2N/A return (HBA_STATUS_ERROR_ARG);
2N/A return (HBA_STATUS_ERROR_ARG);
2N/A return (HBA_STATUS_ERROR_ARG);
2N/A return (HBA_STATUS_ERROR_ARG);
2N/A return (HBA_STATUS_ERROR_INVALID_HANDLE);
2N/A if (hbaPortFound == 0) {
2N/A if (chkDomainPort != 0) {
2N/A if (!(domainPortFound)) {
2N/A return (HBA_STATUS_ERROR_NOT_A_TARGET);
2N/A if (chkDomainPort) {
2N/A return (HBA_STATUS_ERROR_ILLEGAL_WWN);
2N/A if (hbaPortFound == 0) {
2N/A return (HBA_STATUS_ERROR_ILLEGAL_WWN);