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) 2005, 2012, Oracle and/or its affiliates. All rights reserved. 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 * For debugging - higher values increase verbosity 2N/A * All sub-commands which can change state of device require 2N/A /* A dynamic component indicates a device, else it is the bus */ 2N/A * There is no RCM involvement in "list" operations. 2N/A * The only supported option is OPT_USE_DIFORCE. 2N/A * We expand published attachment points but not 2N/A * dynamic attachment points 2N/A if (!
hba) {
/* 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 * Currently only 1 option supported 2N/A * cfga_ap_id_cmp -- use default_ap_id_cmp() in libcfgadm