From a1d998a806ec29825059ba1887466280bff4cd9d Mon Sep 17 00:00:00 2001 From: sos Date: Sat, 27 Jul 2002 12:22:39 +0000 Subject: 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. --- sys/dev/ata/atapi-fd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/ata/atapi-fd.c') 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; -- cgit v1.1