diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 2002-07-28 23:59:00 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 2002-07-28 23:59:00 +0000 |
| commit | b3d86d9ca2813931c1715d548aeaf5f09d6beb5d (patch) | |
| tree | 295fd6cbe8a9982696c4e751b794124bd27a8289 /sys/dev/ata/atapi-fd.c | |
| parent | 2c071f61f0f19a8f373f36cb830f6677acb2aa35 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ata/atapi-fd.c')
| -rw-r--r-- | sys/dev/ata/atapi-fd.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/ata/atapi-fd.c b/sys/dev/ata/atapi-fd.c index 43608474553c..a8a53abe2ce1 100644 --- a/sys/dev/ata/atapi-fd.c +++ b/sys/dev/ata/atapi-fd.c @@ -107,12 +107,7 @@ afdattach(struct ata_device *atadev) dev = disk_create(fdp->lun, &fdp->disk, 0, &afd_cdevsw, &afddisk_cdevsw); dev->si_drv1 = fdp; fdp->dev = dev; - - if (!strncmp(atadev->param->model, "IOMEGA ZIP", 10) || - !strncmp(atadev->param->model, "IOMEGA Clik!", 12)) - fdp->dev->si_iosize_max = 64 * DEV_BSIZE; - else - fdp->dev->si_iosize_max = 127 * DEV_BSIZE; + fdp->dev->si_iosize_max = 256 * DEV_BSIZE; afd_describe(fdp); atadev->flags |= ATA_D_MEDIA_CHANGED; @@ -328,7 +323,7 @@ afd_start(struct ata_device *atadev) } lba = bp->bio_pblkno; - count = min(bp->bio_bcount, fdp->dev->si_iosize_max) / fdp->cap.sector_size; + count = bp->bio_bcount / fdp->cap.sector_size; data_ptr = bp->bio_data; bp->bio_resid = bp->bio_bcount; |
