patch-2.0.36 linux/drivers/block/ide-floppy.c

Next file: linux/drivers/block/ide-tape.c
Previous file: linux/drivers/block/ide-cd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.35/linux/drivers/block/ide-floppy.c linux/drivers/block/ide-floppy.c
@@ -28,6 +28,7 @@
  *                       Issue START cmd only if TEST_UNIT_READY fails
  *                       Add CDROMEJECT ioctl
  *                       Clean up error messages a bit
+ * Ver 0.72  Jul  8 98   Limit max sectors only on IOMEGA ZIP 23.D
  */
 
 #include <linux/config.h>
@@ -1376,7 +1377,8 @@
 	if (gcw.drq_type == 1)
 		set_bit (IDEFLOPPY_DRQ_INTERRUPT, &floppy->flags);
 	if (strcmp(drive->id->model, "IOMEGA ZIP 100 ATAPI") == 0 &&
-	    strcmp(drive->id->fw_rev, "21.D") == 0)
+	    ((strcmp(drive->id->fw_rev, "21.D") == 0) ||
+	     (strcmp(drive->id->fw_rev, "23.D") == 0)))
 		floppy->max_sectors = 64;
 	else
 		floppy->max_sectors = IDEFLOPPY_MAX_SECTORS;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov