Subject: Re: problem with ffs after increasing MAXBSIZE & MAXPHYS
To: Trent George <soundsampler@sbcglobal.net>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: tech-kern
Date: 08/10/2003 20:44:39
On Sat, Aug 09, 2003 at 04:56:47PM -0700, Trent George wrote:
> Hi,
>  
> Recently I have been experimenting with freebsd with a larger MAXBSIZE
>  
> specifically with newfs -b262144
> My steps were to increase both MAXBSIZE and MAXPHYS in sys/param.h
> buildworld and buildkernel and install.
> in freebsd: newfs, mount, and all filesystem works fine with large blocksize.
>  
> I have attempted the same task in NetBSD and seem to have the following problems
> 1/ newfs seems to format the device with larger block size
>    but seems once disklabel reports blocksize over 64k, subsequent newfs fails
> 2/ using dd on the raw device seems to take advantage of the larger maxphys
> 3/ after mounting the filesystem, no luck, with anything
> "ls -l /mnt" reports "Invalid Argument",
> filesystem is unusable.
> the only "working" element was a "df" of a mounted filesystem from freebsd newfs'd
> MAXBSIZE (sys/param.h) is defined as MAXPHYS (arch/i386/include/param.h)
>  
> Has anyone had any experience with larger maxbsize ? (ie 256k)

What kind of hard drive do you have ?
There may be size limits in some drivers or hardware (for example,
IDE is limited to 128k - I'm not even sure the current driver will work with
128k).

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
     NetBSD: 24 ans d'experience feront toujours la difference
--