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 module provides error messages to the 2N/A * a5k and g_fc libraries. 2N/A * I18N message number ranges 2N/A * This file: 10000 - 10499 2N/A * Shared common messages: 1 - 1999 2N/A/* #define _POSIX_SOURCE 1 */ 2N/A * Decodes the SCSI sense byte to a string. 2N/A return (
MSGSTR(
10002,
"Intermediate - condition met"));
2N/A return (
MSGSTR(
10003,
"Reservation_conflict"));
2N/A * This function finds a predefined error string to a given 2N/A * error number (errornum), allocates memory for the string 2N/A * and returns the corresponding error message to the caller. 2N/A * error string if O.K. 2N/A /* Some sort of random system error most likely */ 2N/A }
else {
/* Something's _really_ messed up */ 2N/A " Error: could not decode the" 2N/A " The given error message is not" 2N/A " defined in the library.\n" 2N/A /* Make sure ALL CASES set err_msg to something */ 2N/A " Error: SCSI failure."));
2N/A " Error: Persistant Reserve command" 2N/A " transfer length not word aligned."));
2N/A " Error: Could not find the disk elements" 2N/A " in the Receive Diagnostic pages."));
2N/A " Error: Receive Diagnostic command" 2N/A " transfer length not word aligned."));
2N/A " Error: Programming error - " 2N/A "illegal Mode Sense parameter."));
2N/A " Error: Invalid no. of sense pages.\n" 2N/A " Could not get valid sense page" 2N/A " information from the device."));
2N/A " Error: Invalid buffer length.\n" 2N/A " Could not get diagnostic " 2N/A " information from the device."));
2N/A " Error: Invalid pathname"));
2N/A " Error: Could not get" 2N/A " physical path to the device."));
2N/A " Error: No SES found" 2N/A " for the device path."));
2N/A "Error in the device physical path."));
2N/A " Error in the device physical path:" 2N/A " Error: Invalid path format." 2N/A " Error: Invalid LED request."));
2N/A " Error: Invalid path format."));
2N/A " Error opening the path."));
2N/A "Error: Invalid password length."));
2N/A " Error: Physical path not of a disk."));
2N/A " Error in the device physical path:" 2N/A " Invalid ID found in the path."));
2N/A " Error in the device physical path:" 2N/A " Invalid wwn format."));
2N/A " Error: Could not find valid path to" 2N/A " Error in the device physical path:" 2N/A " Error: Device's Node WWN is not" 2N/A " found in the WWN list.\n"));
2N/A " Error: Device's Node WWN is not" 2N/A " found in the Box list.\n"));
2N/A " Error: Null WWN list found."));
2N/A " Error: Could not find the loop address for " 2N/A " the device at physical path."));
2N/A "Error in the device physical path:" 2N/A " Invalid port number found." 2N/A " (Should be 0 or 1)."));
2N/A "Error: Invalid loop map found."));
2N/A " Error: SFIOCGMAP ioctl failed." 2N/A " Cannot read loop map."));
2N/A " Error: FCIO_GETMAP ioctl failed." 2N/A " Cannot read loop map."));
2N/A " Error: FCIO_LINKSTATUS ioctl failed." 2N/A " Cannot read loop map."));
2N/A " Error: FCIO_GETMAP ioctl returned" 2N/A " an invalid parameter:" 2N/A " # entries to large."));
2N/A " Error: FCIO_FORCE_LIP ioctl failed."));
2N/A " Error: FCIO_FORCE_LIP ioctl failed on one" 2N/A " or more (but not all) of the paths."));
2N/A "Error: Download file checksum failed."));
2N/A " Error: Reading download file exec" 2N/A " header failed."));
2N/A " Error: Incorrect number of bytes read."));
2N/A " Error: Reading text segment: " 2N/A " Found wrong size."));
2N/A " Error: Failed to read download file."));
2N/A " Error: Bad Firmware MAGIC."));
2N/A " Error: Timed out in 5 minutes" 2N/A " IB to become available."));
2N/A " Error parsing the Receive" 2N/A " diagnostic page."));
2N/A " Error: No default file. You must specify" 2N/A " the filename path."));
2N/A " Error: Unable to allocate memory."));
2N/A " Error: Could not convert time" 2N/A " select() error during retry:" 2N/A " Could not wait for" 2N/A " specified time."));
2N/A " Error: No disk devices found" 2N/A " Error: No tape devices found" 2N/A " lstat() error: Cannot obtain status" 2N/A " for the device."));
2N/A " Error: Could not read the symbolic link."));
2N/A " uname() error: Could not obtain the" 2N/A " architeture of the host machine."));
2N/A " Error: Could not run drvconfig."));
2N/A " Error: Could not run disks."));
2N/A " Error: Could not run devlinks."));
2N/A " lstat() error: Could not get status" 2N/A " Error: Could not offline the device\n" 2N/A " Error: Could not open device in" 2N/A " May already be open."));
2N/A " Error: Disk is reserved."));
2N/A " Error: One or more disks in" 2N/A " SENA are reserved."));
2N/A " Error: Slot is empty."));
2N/A " Error: Could not acquire" 2N/A " Error: Could not power off the device.\n" 2N/A " Error: The Enclosure name change failed."));
2N/A " Error: There are two or more enclosures" 2N/A " with the same name." 2N/A " Please use a logical or physical" 2N/A " Error: The number of disks in the" 2N/A " front & rear of the enclosure are" 2N/A " This is not a supported configuration."));
2N/A " Error: Invalid path." 2N/A " Device is not a SENA subsystem."));
2N/A " Error: Cannot get the Box list."));
2N/A " Error: No elements returned from" 2N/A " enclosure (IB)."));
2N/A " Error: Get status failed."));
2N/A " Error: Reading page from IB.\n" 2N/A " Buffer size too small."));
2N/A " Error: Reading page from IB\n" 2N/A " Invalid page code or page len found."));
2N/A " Error: There is a busy or reserved disk" 2N/A " attached to this backplane.\n" 2N/A " You must close the disk,\n" 2N/A " or release the disk,\n" 2N/A " or resubmit the command using" 2N/A " the Force option."));
2N/A " Error: There is a busy disk" 2N/A " attached to this backplane.\n" 2N/A " You must close the disk,\n" 2N/A " or resubmit the command using" 2N/A " the Force option."));
2N/A " Error: There is a reserved disk" 2N/A " attached to this backplane.\n" 2N/A " You must release the disk,\n" 2N/A " or resubmit the subcommand using" 2N/A " the Force option."));
2N/A " Error: No Back plane elements found" 2N/A " in the enclosure."));
2N/A " There is a conflict between the " 2N/A "enclosure name and an SSA name of " 2N/A " Please use a logical or physical " 2N/A " Error: Thread join failed."));
2N/A " Error: FCIO_RESET_LINK ioctl failed.\n" 2N/A " Could not reset the loop."));
2N/A " Error: FCIO_GET_FCODE_REV ioctl failed.\n" 2N/A " Could not get the fcode version."));
2N/A " Error: FCIO_GET_FW_REV ioctl failed.\n" 2N/A " Could not get the firmware revision."));
2N/A " No FC devices found."));
2N/A " Error: FCIO_GET_DEV_LIST ioctl returned" 2N/A " an invalid device count."));
2N/A " Error: FCIO_GET_NUM_DEVS ioctl failed.\n" 2N/A " Could not get the number of devices."));
2N/A " Error: FCIO_GET_DEV_LIST ioctl failed.\n" 2N/A " Could not get the device list."));
2N/A " Error: FCIO_GET_LINK_STATUS ioctl failed.\n" 2N/A " Could not get the link status."));
2N/A " Error: ioctl to offline the port failed."));
2N/A " Error: The driver does not support ioctl to" 2N/A " disable the FCA port."));
2N/A " Error: ioctl to online the port failed."));
2N/A " Error: The driver does not support ioctl to" 2N/A " enable the FCA port."));
2N/A " Error: FCP_TGT_INQUIRY ioctl failed.\n" 2N/A " Could not get the target inquiry data" 2N/A " fstat() error: Cannot obtain status" 2N/A " for the device."));
2N/A " Error: FCIO_GET_HOST_PARAMS ioctl failed.\n" 2N/A " Could not get the host parameters."));
2N/A " stat() error: Cannot obtain status" 2N/A " for the device."));
2N/A " Error: Could not retrieve device tree" 2N/A " Error: Loopback mode is unsupported for this" 2N/A " Error: Error occurred during loopback mode" 2N/A " Error: FCIO_GET_TOPOLOGY ioctl failed.\n" 2N/A " Could not get the fca port topology."));
2N/A " Error: Unexpected Fibre Channel topology" 2N/A " Error: AL_PA is not a valid private loop" 2N/A " Error: Could not find the fabric address" 2N/A " for the device at physical path."));
2N/A " Error: Device port address on the Fabric" 2N/A " topology is not valid."));
2N/A " Error: Point to Point Fibre Channel " 2N/A "topology is currently not supported."));
2N/A " Error: FCIO_DEV_LOGIN ioctl failed."));
2N/A " Error: FCIO_DEV_LOGOUT ioctl failed."));
2N/A " Error: operation not supported " 2N/A "on connected topology."));
2N/A " Error: operation not supported " 2N/A " Error: FCIO_GET_STATE ioctl failed."));
2N/A " Error: device WWN not found in " 2N/A " stat() error: Could not get status" 2N/A " stat() error: Could not get status" 2N/A " Error: di_prom_init failure"));
2N/A " Error: requested port driver" 2N/A " does not exist"));
2N/A " Error: requested phys path does not exist"));
2N/A " Error: g_get_dev_list failed on ULP " 2N/A "processing of target device(s)"));
2N/A " Error: Unable to perform failover"));
2N/A " Error: Pathclass already active"));
2N/A " Error: No device identifier found"));
2N/A " Error: Driver not supported"));
2N/A " Error: process WWN argument"));
2N/A " Error: WWN prop not found"));
2N/A " Error: Requested driver nodes not found"));
2N/A " Error: Invalid map device handle found"));
2N/A " Error: Invalid device property type found"));
2N/A " Error: Invalid device property name found"));
2N/A " Error: Invalid device property handle " 2N/A " Error: Unable to perform failover, " 2N/A "standby path unavailable"));
2N/A " Error: Device does not support failover"));
2N/A " Error: Failover currently in progress"));
2N/A " Error: No such device found"));
2N/A " Error: No such property found"));
2N/A " Error: Invalid argument found"));
2N/A " SCSI Error - Sense Byte:(0x%x) %s \n" 2N/A " Error: Retry failed."),
2N/A " Error: could not decode the" 2N/A " The given error message is not" 2N/A " defined in the library.\n" 2N/A }
/* end of switch */