6 fs64 - cached-worm file server, dump
26 is a cached-worm file server that runs
27 as a user-mode program and can
28 maintain file systems created by
30 the original Plan 9 file server
31 that had its own kernel and operated
32 a standalone system with disks and
33 optical-disc jukebox attached.
36 which could only accept 9P connections over IL/IPv4 on Ethernets
37 (or over Datakit and Cyclones, long ago),
39 accepts 9P connections over any network medium and protocol
40 that it can announce on,
41 by default TCP (over IPv4 or IPv6).
42 Given suitable 9P clients,
43 one could even run 9P over
50 implements a 16K file system block size
51 and 32-bit disk addresses,
52 in order to be compatible with some existing file systems, notably
54 These parameters can be changed by recompilation.
57 places its server 9P connection in
59 and its command pipe in
60 .BI /srv/ name\f1 .cmd,
70 other than the default
80 use a newer, faster, and incompatible cache-device layout.
81 To convert an old file system's cache to the new layout,
82 dump the file system, note the last superblock number,
90 the file system, and start
97 enter the file server's configuration mode
98 before starting normal operation.
103 name of the file server's configuration.
106 Post file descriptor zero in
108 and read and write protocol messages on file descriptor one.
113 contains a simple device name
116 and a replacement per line.
117 The device name is in the usual
121 The replacement can be the name of an existing file
125 or another such device name.
126 For example, the file
136 would map accesses to device
140 and accesses to device
150 The file server normally requires all users except
152 to provide authentication tickets on each
154 This can be disabled using the
156 configuration command (see
159 The group numbered 9999, normally called
162 on the file server. Any user belonging to that group has
163 attenuated access privileges. Specifically, when checking such
164 a user's access to files, the file's permission bits are first ANDed
165 with 0770 for normal files or 0771 for directories. The effect is
166 to deny world access permissions to
169 when walking directories.
173 is always allowed to attach to
175 without authentication but has minimal permissions.
178 maintains three file systems
179 on a combination of disks and
180 write-once-read-many (WORM) magneto-optical disks.
183 is a simple disk-based file system not backed by worm.
186 is a worm-based file system with a disk-based
190 to overcome the write-once property of the worm.
191 The cache also holds recently accessed
192 non-modified blocks to
193 speed up the effective access time of the worm.
195 (usually daily at 5AM) the modified blocks in the
199 traffic to the file system is halted and the
200 modified blocks are relabeled to the unwritten
203 the file system traffic is continued and
204 the relabeled blocks are copied to the worm by
205 a background process.
208 Each time the main file system is dumped,
209 its root is appended to a subdirectory of the dump file system.
210 Since the dump file system is not mirrored with a disk
213 The name of the newly added root is created from the date
215 .BI / yyyy / mmdds\f1.
222 is the day number and
224 is a sequence number if more than
225 one dump is done in a day.
229 For the subsequent dumps
233 The root of the main file system
234 that is frozen on the first dump
238 in the dump file system.
239 .SS "Changes from fs"
241 IP configuration is ignored and the underlying system's is used.
245 commands have been omitted since they (or equivalents) can now be
246 executed directly on the underlying CPU server,
254 Files can be used directly as wren devices by giving
255 a file name rooted at
257 or using double or single quotes. Such a file name
258 can be appended to the
260 device instead of specifying
271 for Marvell SATA disks are not supported; use
273 to map wren devices to appropriate names under
276 The file server kernel seems to have scanned PCI buses
277 in reverse order from the other Plan 9 kernels,
278 so systems with multiple SCSI cards may find controller
281 can be used to compensate for this if you don't want to change
285 The file server kernel's
287 field in NVRAM was overloaded in recent times to hold a
289 key for the CPU hostowner.
292 runs on a CPU kernel,
293 the location of its configuration block must be supplied on the command line.
295 Disk labels are now implemented for
298 At the first access of a side,
300 will attempt to read the label and verify that it has the correct side
301 number and byte order; if either is wrong, it will issue a warning.
302 If the label cannot be read,
304 will attempt to write a new label.
306 The original file server reserved the rest of the machines RAM for
309 running under the Plan 9 kernel reserves a settable percentage
310 of the remaining user pages. The percentage is read from the
313 which when not set is assumed to be 25% (default).
315 Place the root of the
319 and show the modified times of the MIPS C compiler
320 over all dumps in February, 1992:
325 ls -l /n/dump/1992/02??/mips/bin/vc
328 To get only one line of output for each version of the compiler:
331 ls -lp /n/dump/1992/02??/mips/bin/vc | uniq
345 ``A Cached WORM File System'',
347 Software \- Practice and Experience,
352 ``The 64-bit Standalone Plan 9 File Server''
355 the file server serves both the old (9P1) and new (9P2000) versions of 9P,
356 deciding which to serve by sniffing the first packet on each connection.
358 File system block size and disk address size (32- or 64-bit) are fixed
359 at compilation time, and this is not easily changed.