3 mkfs, mkext \- archive or update a file system
26 copies files from the file tree
40 and any files specified in them that are out of date are copied.
43 copies only those files that are out of date.
44 Such a file is first copied into a temporary
45 file in the appropriate destination directory
46 and then moved to the destination file.
47 Files that are not specified in the
50 are not updated and not removed.
58 Instead of writing to a
60 file system, write an archive file to standard output, suitable for
64 not just those out of date, are archived.
69 this option writes a list of file names, dates, and sizes to standard output
70 rather than producing an archive file.
75 above, but produces a list of source file names to standard output
76 rather than producing an archive file.
79 Copy files into the tree rooted at
83 This option suppresses setting the
87 fields when copying files.
93 Update the permissions of a file even if it is up to date.
96 Update of uid and gid of the target files.
102 Copy from files rooted at the tree
106 Print the names of all of the files as they are copied.
109 Copy files assuming block size
113 If a block contains only 0-valued bytes, it is not copied.
117 unpacks archive files made by the
121 Each file on the command line is unpacked in one pass through the archive.
122 If the file is a directory,
123 all files and subdirectories of that directory are also unpacked.
124 When a file is unpacked, the entire path is created if it
126 If no files are specified, the entire archive is unpacked;
127 in this case, missing intermediate directories are not created.
131 specifies a directory (default
133 to serve as the root of the unpacked file system.
136 sets the owners of the files created to correspond to
137 those in the archive and restores the modification times of the files.
140 restores only the modification times of the files.
143 prints the names and sizes of files as they are extracted.
146 prints headers for the files on standard output
147 instead of unpacking the files.
151 Make an archive to establish a new file system:
154 disk/mkfs -a -s dist proto > arch
157 Unpack that archive onto a new file system:
161 mount -c /srv/newfs /n/newfs
162 disk/mkext -u -d /n/newfs < arch
165 .B /sys/src/cmd/disk/mkfs.c
167 .B /sys/src/cmd/disk/mkext.c