Subject: Re: MAXBSIZE Was Re: bread() returns EINVAL during vfs mount
To: Thor Lancelot Simon <firstname.lastname@example.org>
From: Reinoud Zandijk <email@example.com>
Date: 08/27/2005 22:17:02
Content-Type: text/plain; charset=us-ascii
On Sat, Aug 27, 2005 at 12:13:03PM -0400, Thor Lancelot Simon wrote:
> On Sat, Aug 27, 2005 at 05:56:44PM +0200, Reinoud Zandijk wrote:
> > I wonder how i can implement sector sizes bigger than MAXBSIZE (normally
> > around 4k AFAIK) with normal bread and bwrite calls though.
> I'm sorry, what? I am unaware of any port that has a MAXBSIZE smaller
> than 31K.
really? now where did i read this then.... a scout and a printf() tells me
you're right though i wonder where i read this was `just' 4kb...
interesting. Is NetBSD different from other BSD's in this? or was it a
linux thing i read... *sigh* i need to `grep' more and read less.
> You can hand device drivers I/O requests of up to MAXPHYS in size (in
> practice, you can hand them larger requests, too, but don't do that).
> See the FFS code for examples.
more than MAXPHYS prolly won't help much as the SCSI layer will prolly
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
-----END PGP SIGNATURE-----