fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*LINTLIBRARY*/
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * This module is part of the photon library
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * I18N message number ranges
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * This file: 3500 - 3999
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Shared common messages: 1 - 1999
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Includes */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Defines */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteprint_ssd_in_box(char *ses_path, uchar_t *box_name, int verbose)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (err = l_get_status(ses_path, &l_state, verbose)) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /* Need to find out whether this device is a daktari */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if ((strncmp((char *)&inq.inq_pid[0], DAK_OFF_NAME,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte for (i = 0; i < (int)l_state.total_num_drv/2; i++) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (l_state.drv_front[i].ib_status.code != S_NOT_INSTALLED) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ml = l_state.drv_front[i].g_disk_state.multipath_list;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte for (wwn_list_ptr = wwn_list; wwn_list_ptr != NULL;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (strcmp((char *)s,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte "%-80.80s %-17.17s %-17.17s %-22.22s "),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte for (i = 0; i < (int)l_state.total_num_drv/2; i++) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (l_state.drv_rear[i].ib_status.code != S_NOT_INSTALLED) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ml = l_state.drv_rear[i].g_disk_state.multipath_list;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte for (wwn_list_ptr = wwn_list; wwn_list_ptr != NULL;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (strcmp((char *)s,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte "%-80.80s %-17.17s %-17.17s %-22.22s "),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /* Don't re-print multiple paths */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /* Found enclosure */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte "%-80.80s %-17.17s %-17.17s %-22.22s %-20.20s \n"),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte "%-80.80s %-17.17s %-17.17s %-22.22s %-20.20s\n"),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte "%-80.80s %-17.17s %-17.17s %-22.22s %-20.20s\n"),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Print the individual disk information for each box.