Subject: Re: CVS commit: src/sbin/newfs
To: David Laight <david@l8s.co.uk>
From: Bill Studenmund <wrstuden@netbsd.org>
List: source-changes
Date: 10/10/2003 13:55:04
--9ADF8FXzFeE7X4jE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 10, 2003 at 11:07:52AM +0100, David Laight wrote:
> >    > i think it would be best if newfs Just Worked with vinum devices.
> >   =20
> >    No question.  Do you have any suggestion how?  I suppose one way wou=
ld
> >    be to ignore errors if you can't get the partition information
> >    indicated by the last letter.  Another, tacky one would be to
> >    recognize the path name (/dev/vinum) and go by that.  But that's even
> >    worse than the -V flag.
>=20
> The partition size could be got from stat, the label is only needed
> for the sector size.  It is also used as defaults for the fragment/block
> size and to validate the appleufs stuff.
>=20
> IMHO the fragment/block sizes don't belong in the label!
> And newfs shouldn't be writing the label....

Yes, actually, it should be in the disklabel. Well, it should be in the
partition info. It's there so that we widen the range of severe superblock
failure issues we can deal with. My understanding is that with those
values (block/frag/cpg), it's easy to calculate where alternate
superblocks are, so we can easily find them.

Take care,

Bill

--9ADF8FXzFeE7X4jE
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQE/hxyoWz+3JHUci9cRAoziAJ9gylSKXm16SFbgTv9mbKobdf80vgCfd9TA
6dXHVFwt5prQQHDmNCi5Z/Y=
=pmT3
-----END PGP SIGNATURE-----

--9ADF8FXzFeE7X4jE--