Subject: bin/2517: newfs(8) needs update to match reality
To: None <gnats-bugs@NetBSD.ORG>
From: Mike Long <mike.long@analog.com>
List: netbsd-bugs
Date: 06/04/1996 23:05:47
>Number:         2517
>Category:       bin
>Synopsis:       newfs(8) needs update to match reality
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun  4 23:35:01 1996
>Last-Modified:
>Originator:     Mike Long <mike.long@analog.com>
>Organization:
	
>Release:        1.2_ALPHA
>Environment:
	
System: NetBSD azathoth 1.2_ALPHA NetBSD 1.2_ALPHA (AZATHOTH) #68: Tue Jun 4 02:34:04 EDT 1996 root@azathoth:/usr/src/sys/arch/i386/compile/AZATHOTH i386


>Description:
	newfs(8) uses some outdated constants.  First noted by greywolf
(greywolf@defender.VAS.viewlogic.com).

>How-To-Repeat:
	man 8 newfs
>Fix:
	Apply this patch:

*** src/sbin/newfs/newfs.8~	Fri Oct 13 21:12:38 1995
--- src/sbin/newfs/newfs.8	Tue Jun  4 22:49:55 1996
***************
*** 164,168 ****
  .It Fl i Ar number of bytes per inode
  This specifies the density of inodes in the file system.
! The default is to create an inode for each 2048 bytes of data space.
  If fewer inodes are desired, a larger number should be used;
  to create more inodes a smaller number should be given.
--- 164,168 ----
  .It Fl i Ar number of bytes per inode
  This specifies the density of inodes in the file system.
! The default is to create an inode for each 4096 bytes of data space.
  If fewer inodes are desired, a larger number should be used;
  to create more inodes a smaller number should be given.
***************
*** 170,174 ****
  The percentage of space reserved from normal users; the minimum free
  space threshold.
! The default value used is 10%.
  See
  .Xr tunefs 8
--- 170,174 ----
  The percentage of space reserved from normal users; the minimum free
  space threshold.
! The default value used is 5%.
  See
  .Xr tunefs 8
***************
*** 180,186 ****
  The file system can either be instructed to try to minimize the time spent
  allocating blocks, or to try to minimize the space fragmentation on the disk.
! If the value of minfree (see above) is less than 10%,
  the default is to optimize for space;
! if the value of minfree is greater than or equal to 10%,
  the default is to optimize for time.
  See
--- 180,186 ----
  The file system can either be instructed to try to minimize the time spent
  allocating blocks, or to try to minimize the space fragmentation on the disk.
! If the value of minfree (see above) is less than 5%,
  the default is to optimize for space;
! if the value of minfree is greater than or equal to 5%,
  the default is to optimize for time.
  See

>Audit-Trail:
>Unformatted: