Skip to contentSkip to conversation

DEC hsg80 needs BLIST_REPORTLUN2

PATCH In review Steve Wilcox 2 participants 5 messages Aug 9, 2005 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 DEC hsg80 needs BLIST_REPORTLUN2

In order to properly report LUN's > 7, the DEC HSG80 definition in scsi_devinfo.c needs to include BLIST_REPORTLUN2 rather than BLIST_SPARSELUN. I've tested this change with several HSG firmware revisions and with both Emulex and Qlogic HBA's.

-Steve

drivers/scsi/scsi_devinfo.c 2005-05-09 12:29:03.000000000 -0400 renamed from drivers/scsi/scsi_devinfo.c 2005-05-09 12:28:15.000000000 -0400 +0 -0
@@ -135,7 +135,7 @@ static struct {
	{"COMPAQ", "MSA1000 VOLUME", NULL, BLIST_SPARSELUN |
BLIST_NOSTARTONADD},
	{"COMPAQ", "HSV110", NULL, BLIST_REPORTLUN2 | BLIST_NOSTARTONADD},
	{"DDN", "SAN DataDirector", "*", BLIST_SPARSELUN},
-	{"DEC", "HSG80", NULL, BLIST_SPARSELUN | BLIST_NOSTARTONADD},
+	{"DEC", "HSG80", NULL, BLIST_REPORTLUN2 | BLIST_NOSTARTONADD},
	{"DELL", "PV660F", NULL, BLIST_SPARSELUN},
	{"DELL", "PV660F PSEUDO", NULL, BLIST_SPARSELUN},
	{"DELL", "PSEUDO DEVICE .", NULL, BLIST_SPARSELUN}, /* Dell PV 530F */
#1 lore raw
Quoted 4 lines · Steve Wilcox

In order to properly report LUN's > 7, the DEC HSG80 definition in scsi_devinfo.c needs to include BLIST_REPORTLUN2 rather than BLIST_SPARSELUN. I've tested this change with several HSG firmware revisions and with both Emulex and Qlogic HBA's.

Well, your patch won't apply. Apart from the breaking by the mailer, you have a curiosity in the last three lines (the DELL arrays) which are definitely missing tabs and spaces over what we have in the kernel (There are three spaces between "PV660F" and "PSEUDO" and there's a tab not a space before the comment). How did you generate this diff?

Anyway, I can apply the single change manually.

James

#2 lore raw

Crap. I was afraid that my mailer might mangle this... I created the
patch with "diff -up" based on the info in "SubmittingPatches" in the kernel source tree, but I must admit that I manually edited the patch so that It would apply to RedHat's .src.rpms using their canned spec files. The working (at least using RedHat's method) patch is attached this time rather than pasted in. If that one still fails to work, the single change is all that's really needed.

-steve

Quoted 12 lines · James Bottomley
Quoted 4 lines · Steve Wilcox

In order to properly report LUN's > 7, the DEC HSG80 definition in scsi_devinfo.c needs to include BLIST_REPORTLUN2 rather than BLIST_SPARSELUN. I've tested this change with several HSG firmware revisions and with both Emulex and Qlogic HBA's.

Well, your patch won't apply. Apart from the breaking by the mailer, you have a curiosity in the last three lines (the DELL arrays) which are definitely missing tabs and spaces over what we have in the kernel (There are three spaces between "PV660F" and "PSEUDO" and there's a tab not a space before the comment). How did you generate this diff?

Quoted 5 lines

Anyway, I can apply the single change manually.

James

******** McAfee GroupShield Exchange **********
******** Alert generated at: Tuesday, August 09, 2005 01:29:05 PM Central Daylight Time
**********************************************************************

The file scsi-blacklist.patch has been replaced, as it is a file type that is known for spreading viruses. For assistance, please contact your local Desktop Support Personnel or refer to the following website for direction. http://antivirus.security.att.com/Default.htm

#3 lore raw
Quoted 7 lines · CITPC

Crap. I was afraid that my mailer might mangle this... I created the
patch with "diff -up" based on the info in "SubmittingPatches" in the kernel source tree, but I must admit that I manually edited the patch so that It would apply to RedHat's .src.rpms using their canned spec files. The working (at least using RedHat's method) patch is attached this time rather than pasted in. If that one still fails to work, the single change is all that's really needed.

Well, apparently your ISP mangles attachments:

Quoted 5 lines

The file scsi-blacklist.patch has been replaced, as it is a file type that is known for spreading viruses. For assistance, please contact your local Desktop Support Personnel or refer to the following website for direction. http://antivirus.security.att.com/Default.htm

However I think I have this patch here:

http://www.kernel.org/git/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=67f4602a392008439ab030ab23181f75e330ba74

If you just verify I got it right.

James

#4 lore raw

That one looks good. Thanks for all of your help there.

-steve

Quoted 26 lines · James Bottomley
Quoted 7 lines · CITPC

Crap. I was afraid that my mailer might mangle this... I created the
patch with "diff -up" based on the info in "SubmittingPatches" in the kernel source tree, but I must admit that I manually edited the patch so that It would apply to RedHat's .src.rpms using their canned spec files. The working (at least using RedHat's method) patch is attached this time rather than pasted in. If that one still fails to work, the single change is all that's really needed.

Well, apparently your ISP mangles attachments:

Quoted 5 lines

The file scsi-blacklist.patch has been replaced, as it is a file type that is known for spreading viruses. For assistance, please contact your local Desktop Support Personnel or refer to the following website for direction. http://antivirus.security.att.com/Default.htm

However I think I have this patch here:

http://www.kernel.org/git/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=67f4602a392008439ab030ab23181f75e330ba74

If you just verify I got it right.

James