tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: blocksizes

On Mon, Feb 01, 2010 at 08:58:31PM +0000, Michael van Elst wrote:
> The superblock already stores block sizes in terms of byte counts.
> The problem is that it stores information that shouldn't be there but
> which depends only on the underlying medium. If you change the medium
> you invalidate that information.

Do you ?

Or do you just require that, for some actions, the fs code treats the
numbers in the superblock as refering to the original block size - and
if the current block size is different, acts to maintain the existing
filesystem layout.

There is also the case that non-512 byte ffs are extremely rare, and that
modern netbsd ffs are not really compatible with other systems any more.
So precisely what the exact definitions of some of these fields are
can be bent slightly.


David Laight:

Home | Main Index | Thread Index | Old Index