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 new file system,
59 write an archive file to standard output, suitable for
63 not just those out of date, are archived.
68 this option writes a list of file names, dates, and sizes to standard output
69 rather than producing an archive file.
74 above, but produces a list of source file names to standard output
75 rather than producing an archive file.
78 Copy files into the tree rooted at
82 This option suppresses setting the
86 fields when copying files.
92 Update the permissions of a file even if it is up to date.
95 Update of uid and gid of the target files.
101 Copy from files rooted at the tree
105 Print the names of all of the files as they are copied.
108 Copy files assuming block size
112 If a block contains only 0-valued bytes, it is not copied.
116 unpacks archive files made by the
120 Each file on the command line is unpacked in one pass through the archive.
121 If the file is a directory,
122 all files and subdirectories of that directory are also unpacked.
123 When a file is unpacked, the entire path is created if it
125 If no files are specified, the entire archive is unpacked;
126 in this case, missing intermediate directories are not created.
130 specifies a directory (default
132 to serve as the root of the unpacked file system.
135 sets the owners of the files created to correspond to
136 those in the archive and restores the modification times of the files.
139 restores only the modification times of the files.
142 prints the names and sizes of files as they are extracted.
145 prints headers for the files on standard output
146 instead of unpacking the files.
150 Make an archive to establish a new file system:
153 disk/mkfs -a -s dist proto > arch
156 Unpack that archive onto a new file system:
160 mount -c /srv/newfs /n/newfs
161 disk/mkext -u -d /n/newfs < arch
164 .B /sys/src/cmd/disk/mkfs.c
166 .B /sys/src/cmd/disk/mkext.c