fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
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 *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte *
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 *
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*LINTLIBRARY*/
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * This module is part of the photon library
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * I18N message number ranges
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * This file: 3500 - 3999
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Shared common messages: 1 - 1999
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Includes */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <stdlib.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <stdio.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <sys/file.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <sys/errno.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <sys/types.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <sys/param.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <fcntl.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <unistd.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <errno.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <string.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <sys/scsi/scsi.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <nl_types.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <strings.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <sys/ddi.h> /* for max */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <libdevice.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <sys/fibre-channel/fcio.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define _SYS_FC4_FCAL_LINKAPP_H
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <sys/fc4/fcio.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <sys/devctl.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <sys/scsi/targets/sesio.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <l_common.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <l_error.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <a_state.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <a5k.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include <stgcom.h>
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#include "luxadm.h"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* Defines */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#define VERBPRINT if (verbose) (void) printf
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortestatic int
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteprint_ssd_in_box(char *ses_path, uchar_t *box_name, int verbose)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte{
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteL_state l_state;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint err, i;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortestruct dlist *ml;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteWWN_list *wwn_list, *wwn_list_ptr;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortechar *s;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteL_inquiry inq;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint enc_type = 0;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte wwn_list = wwn_list_ptr = NULL;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (err = l_get_status(ses_path, &l_state, verbose)) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return (err);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (err = g_get_wwn_list(&wwn_list, verbose)) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return (err);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /* Need to find out whether this device is a daktari */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (g_get_inquiry(ses_path, &inq)) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return (L_SCSI_ERROR);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if ((strncmp((char *)&inq.inq_pid[0], DAK_OFF_NAME,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte strlen(DAK_OFF_NAME)) == 0) ||
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (strncmp((char *)&inq.inq_pid[0], DAK_PROD_STR,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte strlen(DAK_PROD_STR)) == 0)) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte enc_type = DAK_ENC_TYPE;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
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
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ml = l_state.drv_front[i].g_disk_state.multipath_list;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte while (ml) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte for (wwn_list_ptr = wwn_list; wwn_list_ptr != NULL;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte wwn_list_ptr = wwn_list_ptr->wwn_next) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte s = wwn_list_ptr->physical_path;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (strcmp((char *)s,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ml->dev_path) == 0) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (void) fprintf(stdout, MSGSTR(3500,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte "%-80.80s %-17.17s %-17.17s %-22.22s "),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte wwn_list_ptr->physical_path,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte wwn_list_ptr->node_wwn_s,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte wwn_list_ptr->port_wwn_s,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte wwn_list_ptr->logical_path);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (enc_type == DAK_ENC_TYPE) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (void) fprintf(stdout,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte MSGSTR(3513, "%s,s%d\n"),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte box_name, i);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte } else {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (void) fprintf(stdout,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte MSGSTR(3501, "%s,f%d\n"),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte box_name, i);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ml = ml->next;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
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
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ml = l_state.drv_rear[i].g_disk_state.multipath_list;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte while (ml) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte wwn_list_ptr = wwn_list;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte for (wwn_list_ptr = wwn_list; wwn_list_ptr != NULL;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte wwn_list_ptr = wwn_list_ptr->wwn_next) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte s = wwn_list_ptr->physical_path;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (strcmp((char *)s,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ml->dev_path) == 0) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (void) fprintf(stdout, MSGSTR(3502,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte "%-80.80s %-17.17s %-17.17s %-22.22s "),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte wwn_list_ptr->physical_path,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte wwn_list_ptr->node_wwn_s,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte wwn_list_ptr->port_wwn_s,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte wwn_list_ptr->logical_path);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (enc_type == DAK_ENC_TYPE) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (void) fprintf(stdout,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte MSGSTR(3513, "%s,s%d\n"),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte box_name,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (int)l_state.total_num_drv/2+i);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte } else {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (void) fprintf(stdout,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte MSGSTR(3503, "%s,r%d\n"),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte box_name, i);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ml = ml->next;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte g_free_wwn_list(&wwn_list);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return (0);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte}
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortesysdump(int verbose)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte{
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint err;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBox_list *b_list = NULL;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBox_list *o_list = NULL;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBox_list *c_list = NULL;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteint multi_print_flag;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (err = l_get_box_list(&b_list, verbose)) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return (err);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (b_list == NULL) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (void) fprintf(stdout,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte MSGSTR(93, "No %s enclosures found "
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte "in /dev/es\n"), ENCLOSURE_PROD_NAME);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte } else {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte o_list = b_list;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte while (b_list != NULL) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /* Don't re-print multiple paths */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c_list = o_list;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte multi_print_flag = 0;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte while (c_list != b_list) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (strcmp(c_list->b_node_wwn_s,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte b_list->b_node_wwn_s) == 0) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte multi_print_flag = 1;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte break;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c_list = c_list->box_next;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (multi_print_flag) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte b_list = b_list->box_next;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte continue;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /* Found enclosure */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (void) fprintf(stdout,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte MSGSTR(3504, "Enclosure name:%s Node WWN:%s\n"),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte b_list->b_name, b_list->b_node_wwn_s);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (void) fprintf(stdout, MSGSTR(3505,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte "%-80.80s %-17.17s %-17.17s %-22.22s %-20.20s \n"),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte MSGSTR(3506, "Physical"),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte MSGSTR(3507, "Node_WWN"),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte MSGSTR(3508, "Port_WWN"),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte MSGSTR(3509, "Logical"),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte MSGSTR(3510, "Name"));
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (void) fprintf(stdout, MSGSTR(3511,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte "%-80.80s %-17.17s %-17.17s %-22.22s %-20.20s\n"),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte b_list->b_physical_path,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte b_list->b_node_wwn_s,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte b_list->b_port_wwn_s,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte b_list->logical_path,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte b_list->b_name);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c_list = o_list;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte while (c_list != NULL) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if ((c_list != b_list) &&
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (strcmp(c_list->b_node_wwn_s,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte b_list->b_node_wwn_s) == 0)) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (void) fprintf(stdout, MSGSTR(3512,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte "%-80.80s %-17.17s %-17.17s %-22.22s %-20.20s\n"),
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c_list->b_physical_path,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c_list->b_node_wwn_s,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c_list->b_port_wwn_s,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c_list->logical_path,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c_list->b_name);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte c_list = c_list->box_next;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Print the individual disk information for each box.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte if (err = print_ssd_in_box(b_list->b_physical_path,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte b_list->b_name, verbose)) {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return (err);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte b_list = b_list->box_next;
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte }
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (void) l_free_box_list(&b_list);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte return (0);
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte}