mkfs, mkext \- archive or update a file system
.SH SYNOPSIS
.B disk/mkfs
-.RB [ -aprvxU ]
+.RB [ -aprvoxU ]
.RB [ -d
.IR root ]
-.RB [ -n
-.IR name ]
.RB [ -s
.IR source ]
-.RB [ -u
-.IR users ]
.RB [ -z
.IR n ]
.I proto ...
.I source
(default
.BR / )
-to a
-.B kfs
-file system (see
-.IR kfs (4)).
-The kfs service is mounted on
+to a new file system
.I root
(default
-.BR /n/kfs ),
-and
-.B /adm/users
-is copied to
-.IB root /adm/users\f1.
+.BR /n/newfs ).
The
.I proto
files are read
(see
.IR proto (2)
for their format)
-and any files specified in them that are out of date are copied to
-.BR /n/kfs .
+and any files specified in them that are out of date are copied.
.PP
.I Mkfs
copies only those files that are out of date.
Such a file is first copied into a temporary
file in the appropriate destination directory
and then moved to the destination file.
-Files in the
-.I kfs
-file system that are not specified in the
+Files that are not specified in the
.I proto
file
are not updated and not removed.
.TF "s source"
.TP
.B a
-Instead of writing to a
-.B kfs
-file system, write an archive file to standard output, suitable for
+Instead of writing to new file system,
+write an archive file to standard output, suitable for
.IR mkext .
All files in
.IR proto ,
this option writes a list of file names, dates, and sizes to standard output
rather than producing an archive file.
.TP
+.B o
+Similar to
+.BR -x
+above, but produces a list of source file names to standard output
+rather than producing an archive file.
+.TP
.BI "d " root
Copy files into the tree rooted at
.I root
(default
-.BR /n/kfs ).
+.BR /n/newfs ).
This option suppresses setting the
.B uid
and
.B -U
to reenable it.
.TP
-.BI "n " name
-Use
-.RI kfs. name
-as the name of the kfs service (default
-.BR kfs ).
-.TP
.B p
Update the permissions of a file even if it is up to date.
.TP
+.B U
+Update of uid and gid of the target files.
+.TP
.B r
Copy all files.
.TP
Copy from files rooted at the tree
.IR source .
.TP
-.BI "u " users
-Copy file
-.I users
-into
-.B /adm/users
-in the new system.
-.TP
.B v
Print the names of all of the files as they are copied.
.TP
.BI "z " n
-Copy files assuming kfs block
+Copy files assuming block size
.I n
(default 1024)
bytes long.
Make an archive to establish a new file system:
.IP
.EX
-disk/mkfs -a -u files/adm.users -s dist proto > arch
+disk/mkfs -a -s dist proto > arch
.EE
.PP
Unpack that archive onto a new file system:
.B /sys/src/cmd/disk/mkext.c
.SH "SEE ALSO"
.IR prep (8),
-.IR kfscmd (8),
.IR sd (3),
.IR tar (1)