patch-2.3.4 linux/drivers/scsi/scsi.c
Next file: linux/drivers/scsi/st.c
Previous file: linux/drivers/scsi/README.st
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Wed May 26 09:33:40 1999
- Orig file:
v2.3.3/linux/drivers/scsi/scsi.c
- Orig date:
Fri May 14 18:55:22 1999
diff -u --recursive --new-file v2.3.3/linux/drivers/scsi/scsi.c linux/drivers/scsi/scsi.c
@@ -109,6 +109,7 @@
#define BLIST_SINGLELUN 0x10
#define BLIST_NOTQ 0x20
#define BLIST_SPARSELUN 0x40
+#define BLIST_MAX5LUN 0x80
/*
* Data declarations.
@@ -273,6 +274,7 @@
{"INSITE","I325VM","*", BLIST_KEY},
{"NRC","MBR-7","*", BLIST_FORCELUN | BLIST_SINGLELUN},
{"NRC","MBR-7.4","*", BLIST_FORCELUN | BLIST_SINGLELUN},
+{"REGAL","CDC-4X","*", BLIST_MAX5LUN | BLIST_SINGLELUN},
{"NAKAMICH","MJ-4.8S","*", BLIST_FORCELUN | BLIST_SINGLELUN},
{"NAKAMICH","MJ-5.16S","*", BLIST_FORCELUN | BLIST_SINGLELUN},
{"PIONEER","CD-ROM DRM-600","*", BLIST_FORCELUN | BLIST_SINGLELUN},
@@ -936,6 +938,15 @@
*max_dev_lun = 8;
return 1;
}
+
+ /*
+ * REGAL CDC-4X: avoid hang after LUN 4
+ */
+ if (bflags & BLIST_MAX5LUN) {
+ *max_dev_lun = 5;
+ return 1;
+ }
+
/*
* We assume the device can't handle lun!=0 if: - it reports scsi-0 (ANSI
* SCSI Revision 0) (old drives like MAXTOR XT-3280) or - it reports scsi-1
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)