Subject: Re: A second newfs problem
To: Christopher SEKIYA <wileyc@rezrov.net>
From: Darrin B. Jewell <dbj@NetBSD.org>
List: tech-kern
Date: 10/13/2003 13:56:59
Oops.
Yes, llsize and llsizemult should both be initialized to 0.

Thanks,
Darrin

Christopher SEKIYA <wileyc@rezrov.net> writes:

> There seems to be a second, related problem with newfs: without specifying
> -s, llsize isn't properly initialized.  This results in the sanity checks
> around newfs.c:573 to do the wrong thing -- the way I see it (and please
> correct me if I am wrong), if a size isn't explicitly specified newfs should
> use all available space.
> 
> The attached patch initializes llsize, permits newfs to build filesystems
> without explicit -s, and makes things like sysinst very happy.  I was unsure if
> llsize should initially be zero or -1.