patch-1.3.52 linux/drivers/scsi/sr.c

Next file: linux/fs/buffer.c
Previous file: linux/drivers/scsi/sg.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.51/linux/drivers/scsi/sr.c linux/drivers/scsi/sr.c
@@ -1021,6 +1021,8 @@
 	scsi_CDs[i].sector_size = (buffer[4] << 24) |
 	    (buffer[5] << 16) | (buffer[6] << 8) | buffer[7];
 	if(scsi_CDs[i].sector_size == 0) scsi_CDs[i].sector_size = 2048;
+	/* Work around bug/feature in HP 4020i CD-Recorder... */
+	if(scsi_CDs[i].sector_size == 2340) scsi_CDs[i].sector_size = 2048;
 	if(scsi_CDs[i].sector_size != 2048 && 
 	   scsi_CDs[i].sector_size != 512) {
 	    printk ("scd%d : unsupported sector size %d.\n",

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this