3 mkfs, mkext \- archive or update a file system
30 copies files from the file tree
38 The kfs service is mounted on
45 .IB root /adm/users\f1.
52 and any files specified in them that are out of date are copied to
56 copies only those files that are out of date.
57 Such a file is first copied into a temporary
58 file in the appropriate destination directory
59 and then moved to the destination file.
62 file system that are not specified in the
65 are not updated and not removed.
73 Instead of writing to a
75 file system, write an archive file to standard output, suitable for
79 not just those out of date, are archived.
84 this option writes a list of file names, dates, and sizes to standard output
85 rather than producing an archive file.
88 Copy files into the tree rooted at
92 This option suppresses setting the
96 fields when copying files.
104 as the name of the kfs service (default
108 Update the permissions of a file even if it is up to date.
111 Update of uid and gid of the target files.
117 Copy from files rooted at the tree
128 Print the names of all of the files as they are copied.
131 Copy files assuming kfs block
135 If a block contains only 0-valued bytes, it is not copied.
139 unpacks archive files made by the
143 Each file on the command line is unpacked in one pass through the archive.
144 If the file is a directory,
145 all files and subdirectories of that directory are also unpacked.
146 When a file is unpacked, the entire path is created if it
148 If no files are specified, the entire archive is unpacked;
149 in this case, missing intermediate directories are not created.
153 specifies a directory (default
155 to serve as the root of the unpacked file system.
158 sets the owners of the files created to correspond to
159 those in the archive and restores the modification times of the files.
162 restores only the modification times of the files.
165 prints the names and sizes of files as they are extracted.
168 prints headers for the files on standard output
169 instead of unpacking the files.
173 Make an archive to establish a new file system:
176 disk/mkfs -a -u files/adm.users -s dist proto > arch
179 Unpack that archive onto a new file system:
183 mount -c /srv/newfs /n/newfs
184 disk/mkext -u -d /n/newfs < arch
187 .B /sys/src/cmd/disk/mkfs.c
189 .B /sys/src/cmd/disk/mkext.c