lkml.org 
[lkml]   [2003]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectlinux-2.4.18-3ware-fake.patch, 8500 series

This patch addresses two primary commands not supported.
This is to reduce noise pollution in logs.


MODE_SENSE:
VERIFY:


Are not supported in the driver and would normally make noise but this
effects performance under some environments.



Cheers,

Andre Hedrick
LAD Storage Consulting Group
--- linux/drivers/scsi/3w-xxxx.c.orig 2002-12-09 17:43:22.000000000 -0800
+++ linux/drivers/scsi/3w-xxxx.c 2002-12-09 17:45:43.000000000 -0800
@@ -2438,6 +2438,15 @@
dprintk(KERN_NOTICE "3w-xxxx: tw_scsi_queue(): caught TW_SCSI_IOCTL.\n");
error = tw_ioctl(tw_dev, request_id);
break;
+
+ /* FIXME: Fake or Lie but FixMe */
+ case MODE_SENSE:
+ case VERIFY:
+ tw_dev->state[request_id] = TW_S_COMPLETED;
+ tw_state_request_finish(tw_dev, request_id);
+ SCpnt->result = (DID_BAD_TARGET << 16);
+ done(SCpnt);
+ break;
default:
printk(KERN_NOTICE "3w-xxxx: scsi%d: Unknown scsi opcode: 0x%x\n", tw_dev->host->host_no, *command);
tw_dev->state[request_id] = TW_S_COMPLETED;
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.031 / U:1.636 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site