2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved. 2N/A * Retrieves the mapping between targets and OS SCSI information 2N/A /* on error, need to set NumberOfEntries to 0 */ 2N/A * We should indicate an error if no domainPortWWN passed in. 2N/A * walk through the list of ports for this hba and count up the number 2N/A * of discovered ports on each hba port 2N/A * HBA ports under the same HBA may have 2N/A * different LocalSASAddress. We should loop 2N/A * through the HBA port list to find the 2N/A * matching HBA port. 2N/A * Check whether the domainPortWWN matches. 2N/A * Add the information as much as mapping 2N/A * check to make sure user has passed in an acceptable PortWWN for 2N/A "HBA Port WWN %016llx on handle %08lx",
2N/A "port %016llx for port %016llx on handle " 2N/A "total entries: %d: mapping->NumberofEntries: %d.",
2N/A /* convert devpath to dev link */