[2.4] sym2 module option to behave like 2.6
PATCH 1/1 [2.4] sym2 module option to behave like 2.6
Several people have expressed dissatisfaction with their scsi drives rearranging when they switch between 2.4 and 2.6. It's particularly gruesome for people with an HP A500 as the internal discs swap positions.
I can't make the 2.6 driver behave like the 2.4 driver, so here's an
alternative: add an option to make the 2.4 driver detect hosts in the same order as the 2.6 driver. This patch is only compile tested, so is probably buggy.
Index: drivers/scsi/sym53c8xx_2/sym53c8xx.h
===================================================================
RCS file: /var/cvs/linux-2.4/drivers/scsi/sym53c8xx_2/sym53c8xx.h,v retrieving revision 1.4
scsi/sym53c8xx_2/sym53c8xx.h +3 -0
@@ -268,6 +268,7 @@ struct sym_driver_setup {u_short debug;u_char settle_delay;u_char use_nvram; +u_char probe_26;u_long excludes[8 ];char tag_ctrl[100 ]; };
@@ -313,6 +314,7 @@ struct sym_driver_setup {0 ,/* debug */ \3 ,/* settle_delay */ \1 ,/* use_nvram */ \ + 0, /* probe_26 */ \ }/*
@@ -342,6 +344,7 @@ struct sym_driver_setup {0 ,/* debug */ \10 ,/* settle_delay */ \1 ,/* use_nvram */ \ + 0, /* probe_26 */ \ }/*
Index: drivers/scsi/sym53c8xx_2/sym_glue.c
===================================================================
RCS file: /var/cvs/linux-2.4/drivers/scsi/sym53c8xx_2/sym_glue.c,v retrieving revision 1.6
scsi/sym53c8xx_2/sym_glue.c +47 -11
101 lines not on this page · raw message
Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain