Subject: Re: Non-512-byte sectors
To: Ignatios Souvatzis <>
From: Chuck Silvers <>
List: tech-kern
Date: 09/14/1999 08:01:18
build a UBC kernel and boot it and try mounting an ffs filesystem from the MO.
actually, you'll also need to change this line in ffs_mountfs():

	mp->mnt_dev_bshift = DEV_BSHIFT;	/* XXX */

to set the right shift for your device.

(I'm assuming Bill was talking about filesystem access to non-512-byte-sector
devices... raw access is entirely different, and I haven't looked at that yet.
it should just be a matter of setting b_blkno differently somewhere in the
physio() path.)

er, also someone needs to go thru all the device strategy routines and make
sure they interpret b_blkno the new way instead of the old way.  ok, so
there's probably a bunch of work left to be done now that I think about it.


On Tue, Sep 14, 1999 at 04:44:23PM +0200, Ignatios Souvatzis wrote:
> On Tue, Sep 14, 1999 at 07:18:39AM -0700, Chuck Silvers wrote:
> > I've started adding support to the various filesystems in the UBC branch,
> > but it's not tested with a non-512-byte device since, uh, I don't have any.
> I have, at home (MO drive with "640" MB medium). What shall I checkout and 
> test exactly?
> 	-is
> -- 
>  * Progress (n.): The process through which Usenet has evolved from
>    smart people in front of dumb terminals to dumb people in front of
>    smart terminals.  -- (obscurity)