summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atapi-fd.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2002-07-27 12:22:39 +0000
committersos <sos@FreeBSD.org>2002-07-27 12:22:39 +0000
commita1d998a806ec29825059ba1887466280bff4cd9d (patch)
tree3ebcf104d860305fd130cc39d7645d301fd1d185 /sys/dev/ata/atapi-fd.c
parentba3e2569075ed881a7131d98089e63159897a074 (diff)
downloadFreeBSD-src-a1d998a806ec29825059ba1887466280bff4cd9d.zip
FreeBSD-src-a1d998a806ec29825059ba1887466280bff4cd9d.tar.gz
Properly change the block_size on different CD media, and use that
to calculate the max amount of data in one IO request. Correct the max size on atapi floppies/tapes as well.
Diffstat (limited to 'sys/dev/ata/atapi-fd.c')
-rw-r--r--sys/dev/ata/atapi-fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/atapi-fd.c b/sys/dev/ata/atapi-fd.c
index e0a4c24..4360847 100644
--- a/sys/dev/ata/atapi-fd.c
+++ b/sys/dev/ata/atapi-fd.c
@@ -112,7 +112,7 @@ afdattach(struct ata_device *atadev)
!strncmp(atadev->param->model, "IOMEGA Clik!", 12))
fdp->dev->si_iosize_max = 64 * DEV_BSIZE;
else
- fdp->dev->si_iosize_max = 126 * DEV_BSIZE;
+ fdp->dev->si_iosize_max = 127 * DEV_BSIZE;
afd_describe(fdp);
atadev->flags |= ATA_D_MEDIA_CHANGED;
OpenPOWER on IntegriCloud