From 64dee60f8c832390d4dd7d502b54550b77ae498b Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 19 Dec 2000 21:55:07 +0000 Subject: [PATCH] o Add an example for a large file system. o Remove bug about boot blocks hating non-8k file systems. This hasn't been the case for a long time. Not Objected to by: hackers, doc --- sbin/newfs/newfs.8 | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/sbin/newfs/newfs.8 b/sbin/newfs/newfs.8 index c1f6b494a963..8c4634ffc2ce 100644 --- a/sbin/newfs/newfs.8 +++ b/sbin/newfs/newfs.8 @@ -335,18 +335,20 @@ man page for possible options and their meanings. .El .Sh EXAMPLES .Pp +.Dl newfs -b 16384 -f 4096 -c 100 /dev/ad3s1a +.Pp +Creates a new ufs file system on ad3s1a. +.Nm +will use a block size of 16384 bytes, a fragement size of 4096 bytes +and have 100 cylinders per cylinder group rather than the defaults. +These values are tend to produce better performance than the defaults +for file systems larger than about 5 gigabytes. +.Pp .Dl mount_mfs -s 131072 -o nosuid,nodev /dev/da0s1b /tmp .Pp Mount a 64 MB large memory file system on /tmp, with .Xr mount 8 options nosuid and nodev. -.Sh BUGS -The boot code of -.Fx -assumes that the file system that carries the -kernel has blocks of 8 kilobytes and fragments of 1 kilobyte. -You will -not be able to boot from a file system that uses another size. .Sh SEE ALSO .Xr fdformat 1 , .Xr disktab 5 ,