Subject: CVS commit: src/sbin/newfs
To: None <source-changes@NetBSD.org>
From: David Laight <dsl@netbsd.org>
List: source-changes
Date: 08/21/2003 14:55:04
Module Name:	src
Committed By:	dsl
Date:		Thu Aug 21 14:55:04 UTC 2003

Modified Files:
	src/sbin/newfs: mkfs.c

Log Message:
Rework of code that sorts out number of cylinder groups and inodes:
- allows less than 'one fragment per inode' (useful for mfs /dev)
- limits number of inodes to 2^31 (they are stored in an int32_t)
- errors if the number of cylinder groups is such that the cylinder group
  summary won't fit in the first cylinder group.
- ensures that the last cylinder block contains a valid number of fragments
  and inodes, and is not larger than any earlier ones.
- cylinder groups are now created with almost the same size as each other.
Change posted to tech-kern, and no one objected.


To generate a diff of this commit:
cvs rdiff -r1.73 -r1.74 src/sbin/newfs/mkfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.