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-tape.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/ata/atapi-tape.c') diff --git a/sys/dev/ata/atapi-tape.c b/sys/dev/ata/atapi-tape.c index b8b6455..6801035 100644 --- a/sys/dev/ata/atapi-tape.c +++ b/sys/dev/ata/atapi-tape.c @@ -132,12 +132,12 @@ astattach(struct ata_device *atadev) dev = make_dev(&ast_cdevsw, dkmakeminor(stp->lun, 0, 0), UID_ROOT, GID_OPERATOR, 0640, "ast%d", stp->lun); dev->si_drv1 = stp; - dev->si_iosize_max = 126 * DEV_BSIZE; + dev->si_iosize_max = 127 * DEV_BSIZE; stp->dev1 = dev; dev = make_dev(&ast_cdevsw, dkmakeminor(stp->lun, 0, 1), UID_ROOT, GID_OPERATOR, 0640, "nast%d", stp->lun); dev->si_drv1 = stp; - dev->si_iosize_max = 126 * DEV_BSIZE; + dev->si_iosize_max = 127 * DEV_BSIZE; stp->dev2 = dev; stp->device->flags |= ATA_D_MEDIA_CHANGED; ast_describe(stp); -- cgit v1.1