Subject: Re: FFS compatibility
To: Matthias Drochner <>
From: Frank van der Linden <>
List: tech-kern
Date: 09/08/1998 10:33:31
On Mon, Sep 07, 1998 at 09:53:34PM +0200, Matthias Drochner wrote:
> When I tried to access an ULTRIX filesystem from
> NetBSD-current/pmax I found that the support for the
> old style BSD filesystems got broken between 1.3 and
> -current.
> This is due to a lot of checks for "old style" filesystems
> which use "mnt->mnt_maxsymlinklen == 0". This should
> be "<= 0"; at least for me the "maxsymlinklen" is -1 with
> the old filesystems.

Right. I've fixed the instances that were wrong; apparently it
happened durng the FFS_EI changes.

> There is a lot of unused flag bits in struct ufsmount->um_flags,
> so I propose to dedicate one of them to the "old filesystem"
> property, and to clean up the whole mess.

That would be a cleaner way of doing things. Beware though, things
like fsck can't look at this in-core data, so you'll still need the
other trick.

- Frank