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 2008 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * This file contains the entry points to the plug-in as defined in the 2N/A * config_admin(3X) man page. 2N/A * Set the version number 2N/A "no_update",
"unusable_SCSI_LUN",
"unusable_FCP_dev",
NULL};
2N/A /* Check for super user priveleges */ 2N/A /* Only configure and unconfigure operations are supported */ 2N/A /* Use getsubopt() if more options get added */ 2N/A /* process unknonw option. */ 2N/A /* invalid option specified. */ 2N/A * Yes - so change state of the particular device 2N/A * First Get the WWN in la_wwn_t form 2N/A /* Change state of all devices on FCA and the FCA itself */ 2N/A /* Check for super user privileges */ 2N/A /* Use getsubopt() if more options get added */ 2N/A /* process unknonw option. */ 2N/A /* if force_devinfo is specified check uid = 0 or not. */ 2N/A * We expand published attachment points but not 2N/A * dynamic attachment points 2N/A if (!
fca) {
/* Stat a single device - no expansion for devices */ 2N/A }
else if (!
expand) {
/* Stat only the HBA */ 2N/A }
else {
/* Expand HBA attachment point */ 2N/A /* Return a negative value */ 2N/A * Search for first different char 2N/A * If one of the char is a digit, back up to where the 2N/A * number started, compare the number. 2N/A /* One of them isn't a number, compare the char */