add information about the memory based file system
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 19 Oct 1989 06:35:04 +0000 (22:35 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 19 Oct 1989 06:35:04 +0000 (22:35 -0800)
SCCS-vsn: sbin/newfs/newfs.8 6.8

usr/src/sbin/newfs/newfs.8

index 81b2d6a..caa3e85 100644 (file)
 .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 .\"
 .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 .\"
-.\"    @(#)newfs.8     6.7 (Berkeley) %G%
+.\"    @(#)newfs.8     6.8 (Berkeley) %G%
 .\"
 .TH NEWFS 8 ""
 .UC 5
 .SH NAME
 .\"
 .TH NEWFS 8 ""
 .UC 5
 .SH NAME
-newfs \- construct a new file system
+newfs, mfs \- construct a new file system
 .SH SYNOPSIS
 .SH SYNOPSIS
-.B /etc/newfs
+.B /sbin/newfs
 [
 .B \-N
 ] [
 [
 .B \-N
 ] [
-.B mkfs-options
+.B newfs-options
 ]
 .B special
 ]
 .B special
+.br
+.B /sbin/mfs
+[
+.B \-F
+mount_flags
+] [
+.B newfs-options
+]
+.B special node
 .SH DESCRIPTION
 .I Newfs
 replaces the more obtuse
 .IR mkfs (8)
 program.
 Before running 
 .SH DESCRIPTION
 .I Newfs
 replaces the more obtuse
 .IR mkfs (8)
 program.
 Before running 
-.IR newfs ,
+.I newfs
+or
+.IR mfs ,
 the disk must be labeled using 
 .IR disklabel (8).
 .I Newfs
 the disk must be labeled using 
 .IR disklabel (8).
 .I Newfs
@@ -47,6 +58,29 @@ The
 option causes the file system parameters to be printed out
 without really creating the file system.
 .PP
 option causes the file system parameters to be printed out
 without really creating the file system.
 .PP
+.I Mfs
+is used to build a file system in virtual memory and then mount it
+on a specified node.
+.I Mfs
+exits and the contents of the file system are lost
+when the file system is unmounted.
+If
+.I mfs
+is sent a signal while running,
+for example during system shutdown,
+it will attempt to unmount its
+corresponding file system.
+The parameters to
+.I mfs
+are the same as those to
+.IR newfs .
+The special file is only used to read the disk label which provides
+a set of configuration parameters for the memory based file system.
+The special file is typically that of the primary swap area,
+since that is where the file system will be backed up when
+free memory gets low and the memory supporting
+the file system has to be paged.
+.PP
 The following options define the general layout policies.
 .TP 10
 .B \-b block-size
 The following options define the general layout policies.
 .TP 10
 .B \-b block-size
@@ -170,6 +204,18 @@ Used to describe perturbations in the media format to
 compensate for a slow controller.
 Track skew is the offset of sector 0 on track N
 relative to sector 0 on track N-1 on the same cylinder.
 compensate for a slow controller.
 Track skew is the offset of sector 0 on track N
 relative to sector 0 on track N-1 on the same cylinder.
+.PP
+The following option applies only to
+.IR mfs .
+.TP 10
+.B \-F mount flags
+Used to pass in a decimal numeric value to be passed
+as mount flags when running as a memory based file system.
+This option is primarily intended for use when
+.I mfs
+is started by the
+.IR mount (8)
+command.
 .SH "SEE ALSO"
 disktab(5),
 fs(5),
 .SH "SEE ALSO"
 disktab(5),
 fs(5),