Subject: Re: Reading past device size (/dev/vnd v.s. /dev/cd)
To: None <tech-kern@NetBSD.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 01/20/2006 17:53:09
On Fri, Jan 20, 2006 at 03:56:24PM +0100, Reinoud Zandijk wrote:
> [...]
>
> The only other possible `vilan' to mess with the buffer is the channel
> adapter's minphys called in cdminphys(). Its a piixide adapter but i
> haven't found its adapt_minphys yet.
It is wdc_atapi_minphys:
static void
wdc_atapi_minphys(struct buf *bp)
{
if (bp->b_bcount > MAX_SIZE)
bp->b_bcount = MAX_SIZE;
minphys(bp);
}
where MAX_SIZE is MAXPHYS
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--