FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 07-09-2008, 04:49 PM
 
Default emc_clariion_checker: Additional SCSI info on query command error

emc_clariion_checker returns a "query command error" but no information
as to what generated the error. The proposed patch adds the
sense/ASC/ASCQ or SCSI/host/driver byte information as available from
the SG_IO interface to assist in troubleshooting. The changes should be
pretty universal but this was built on 2.6.9-34 under the
multipath-tools-0.4.5.56 tree.
---
Hope I'm getting this format right. This is my first time submitting a
patch. Please yell directly at me if I'm screwing it up. Thanks...

Jerry Levy, Engineer IV
EMC Global Services Technical Support, PREM ISG
AMER Host Systems Software - UNIX
E-mail: levy_jerome@emc.com
---

--- libcheckers/emc_clariion.c 2008-07-09 12:29:52.000000000 -0400
+++ libcheckers/emc_clariion.c.original 2008-07-09 10:39:05.000000000
-0400
@@ -32,7 +32,6 @@ int emc_clariion(int fd, char *msg, void
unsigned char sb[128] = { 0, };
unsigned char inqCmdBlk[INQUIRY_CMDLEN] = {INQUIRY_CMD, 1, 0xC0,
0,
sizeof(sb), 0};
- unsigned char msgbuf[128];
struct sg_io_hdr io_hdr;
struct emc_clariion_checker_context * ctxt = NULL;
int ret;
@@ -87,15 +86,7 @@ int emc_clariion(int fd, char *msg, void
goto out;
}
if (io_hdr.info & SG_INFO_OK_MASK) {
- if(io_hdr.sb_len_wr) {
- sprintf(msgbuf,"emc_clariion_checker: query
command error (sense 0x%02X, ASC 0x%02x, ASCQ 0x%02x)",
-
sense_buffer[2],sense_buffer[12],sense_buffer[13]);
- }
- else {
- sprintf(msgbuf,"emc_clariion_checker: query
command error (SCSI 0x%02X, host 0x%02x, driver 0x%02x)",
-
io_hdr.masked_status,io_hdr.host_status,io_hdr.dri ver_status);
- }
- MSG(msgbuf);
+ MSG("emc_clariion_checker: query command indicates
error");
ret = PATH_DOWN;
goto out;
}


--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 04:33 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org