Subject: Re: cpg values in disklabel
To: None <current-users@netbsd.org>
From: Raketnet <jordivvz@raketnet.nl>
List: current-users
Date: 06/09/2003 18:23:07
I knew about the -c parameter even it's not documented in newfs(8). But it
still ignores with -c the value 86 I want. Also I looked for some code from
sysinstall trying to figure out if it passed a parameter to get 86 as value.
But don't see it does.

Thus spake Frederick Bruckman ("FB> ") sometime Today...

FB> On Mon, 9 Jun 2003, Raketnet wrote:
FB>
FB> > NetBSD by default with sysinstall, time ago partitioned the partitions with
FB> > cpg values of "86". Everytime I run newfs on a new partition now, it doesn't
FB> > format a new partition using by default 86 as value even if I force it
before
FB> > editing this value with disklabel. Is there something changed here,
about how
FB> > cpg behaves?
FB>
FB> Yes. From the description of "-c" in newfs(8): "The default is to
FB> compute the maximum allowed by the other parameters", but you can
FB> specify a different value (using "-c").

I would argue that this is potentially a bug, or at least a misfeature.
newfs should look at the last cpg used for the partition and use that
value; if one is not present, it should ONLY then decide that it knows
better than you do about CPG.

Alternately, there should be a flag to newfs to force it to read CPG from
the partition map; absent the flag, it will decide that it knows better
than you do about CPG.

FB>
FB> Frederick
FB>
FB>


				--*greywolf;
--
NetBSD: your basement or mine?
-=================================================-
 Deze mail werd verstuurd met Webmail van RaketNet
 Meer informatie? http://www.raketnet.nl
-=================================================-