Subject: Re: CVS commit: basesrc/sbin/newfs
To: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
From: Luke Mewburn <lukem@wasabisystems.com>
List: source-changes
Date: 12/31/2001 13:25:52
On Mon, Dec 31, 2001 at 03:02:19AM +0100, Hubert Feyrer wrote:
  | On Sun, 30 Dec 2001, Lennart Augustsson wrote:
  | > Change how default block size is picked.  The default block size is used
  | > if there is no command line option and the disklabel gives 0 as the size.
  | > The default used to be 8k, not the default is picked depending on the
  | > file system size.  FS < 20M gets 4k, <1G get 8k, and >1G get 16k.
  | > The 16k default was suggested by lukem which FreeBSD is using.
  | 
  | Is this all with 1kb fragment size?

From examination of the source, "no".

Lennart has made the appropriate change and used a 8:1 block:fragment
ratio in all three cases, as there's been a lot less testing of using
smaller ratios (e.g, 4:1 or 2:1), and you can't exceed an 8:1 ratio.

I.e.,
	block size	fragment size	bytes/inode
	----------	-------------	-----------
	4 KB		0.5 KB		2 KB		(4.2BSD ? ffs default)
	8 KB		1 KB		4 KB		(NetBSD ffs default)
	16 KB		2 KB		8 KB

I've updated the man page to reflect this.

(Thanks Lennart!)

Luke.