aboutsummaryrefslogtreecommitdiff
path: root/sbin/newfs
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2000-12-27 14:40:52 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2000-12-27 14:40:52 +0000
commitd90d7015f9b01a0171112ff744bf1571bd2dddce (patch)
tree43cbcb0e3915cca6631dd756cdaa639f2efd30b0 /sbin/newfs
parent4303e19e3adc80a8a72fe9ea9a1fa11781342a3e (diff)
downloadsrc-d90d7015f9b01a0171112ff744bf1571bd2dddce.tar.gz
src-d90d7015f9b01a0171112ff744bf1571bd2dddce.zip
Prepare for mdoc(7)NG.
Notes
Notes: svn path=/head/; revision=70401
Diffstat (limited to 'sbin/newfs')
-rw-r--r--sbin/newfs/newfs.830
1 files changed, 20 insertions, 10 deletions
diff --git a/sbin/newfs/newfs.8 b/sbin/newfs/newfs.8
index 8c4634ffc2ce..a54fbb19c0a2 100644
--- a/sbin/newfs/newfs.8
+++ b/sbin/newfs/newfs.8
@@ -32,7 +32,7 @@
.\" @(#)newfs.8 8.6 (Berkeley) 5/3/95
.\" $FreeBSD$
.\"
-.Dd May 3, 1995
+.Dd December 19, 2000
.Dt NEWFS 8
.Os BSD 4.2
.Sh NAME
@@ -190,13 +190,15 @@ for more details on how to set this option.
.It Fl f Ar frag-size
The fragment size of the file system in bytes. It must be a power of two
ranging in value between
-.Ar blocksize/8
+.Ar blocksize Ns /8
and
.Ar blocksize .
The default is 1024 bytes.
.It Fl i Ar number of bytes per inode
Specify the density of inodes in the file system.
-The default is to create an inode for every (4 * frag-size) bytes of data space.
+The default is to create an inode for every
+.Pq 4 * Ar frag-size
+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.
One inode is required for each distinct file, so this value effectively
@@ -208,7 +210,7 @@ The default value used is
defined by
.Dv MINFREE
from
-.Ao Pa ufs/ffs/fs.h Ac ,
+.Aq Pa ufs/ffs/fs.h ,
currently 8%.
See
.Xr tunefs 8
@@ -223,13 +225,15 @@ Nowadays this value should be set to 1 (which essentially disables the
rotational position table) because modern drives with read-ahead and
write-behind do better without the rotational position table.
.It Fl o Ar optimization\ preference
-.Pq ``space'' or ``time''
+.Pq Ar space No or Ar time .
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 8%,
-the default is to optimize for space;
+the default is to optimize for
+.Ar space ;
if the value of minfree is greater than or equal to 8%,
-the default is to optimize for time.
+the default is to optimize for
+.Ar time .
See
.Xr tunefs 8
for more details on how to set this option.
@@ -337,7 +341,8 @@ man page for possible options and their meanings.
.Pp
.Dl newfs -b 16384 -f 4096 -c 100 /dev/ad3s1a
.Pp
-Creates a new ufs file system on ad3s1a.
+Creates a new ufs file system on
+.Pa 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.
@@ -346,9 +351,14 @@ 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
+Mount a 64 MB large memory file system on
+.Pa /tmp ,
+with
.Xr mount 8
-options nosuid and nodev.
+options
+.Ar nosuid
+and
+.Ar nodev .
.Sh SEE ALSO
.Xr fdformat 1 ,
.Xr disktab 5 ,