9srv Manual Collection/plan9/cwfs(4) | 9srv Manual Collection/plan9/cwfs(4) |
---|
The stock cwfs implements a 16K file system block size and 32-bit disk addresses, in order to be compatible with some existing file systems, notably emelie's. These parameters can be changed by recompilation.
Cwfs expects to find the configuration block on config-device.
Options are:
would map accesses to device w0 to existing file /tmp/w0 and accesses to device h1 to device w2, if no file named w2 exists.
The file server normally requires all users except none to provide authentication tickets on each attach(5). This can be disabled using the noauth configuration command (see fsconfig(8)).
The group numbered 9999, normally called noworld, is special on the file server. Any user belonging to that group has attenuated access privileges. Specifically, when checking such a user's access to files, the file's permission bits are first ANDed with 0770 for normal files or 0771 for directories. The effect is to deny world access permissions to noworld users, except when walking directories.
The user none is always allowed to attach to emelie without authentication but has minimal permissions.
Emelie maintains three file systems on a combination of disks and write-once-read-many (WORM) magneto-optical disks.
Various other fs(4) commands have been omitted since they (or equivalents) can now be executed directly on the underlying CPU server, notably date and passwd (see auth/wrkey).
fs(4)'s device names h for IDE disks and m for Marvell SATA disks are not supported; use -m to map wren devices to appropriate names under /dev/sd*.
The file server kernel seems to have scanned PCI buses in reverse order from the other Plan 9 kernels, so systems with multiple SCSI cards may find controller numbering reversed. -m can be used to compensate for this if you don't want to change filsys declarations.
The file server kernel's config field in NVRAM was overloaded in recent times to hold a secstore(1) key for the CPU hostowner. Since cwfs runs on a CPU kernel, the location of its configuration block must be supplied on the command line.
Disk labels are now implemented for l devices. At the first access of a side, cwfs will attempt to read the label and verify that it has the correct side number and byte order; if either is wrong, it will issue a warning. If the label cannot be read, cwfs will attempt to write a new label.
To get only one line of output for each version of the compiler:
File system block size and disk address size (32- or 64-bit) are fixed at compilation time, and this is not easily changed.
Cwfs is probably not the right choice of file server for new file systems. It's intended to cope with existing file systems on optical jukeboxes or images thereof.
9srv Manual Collection/plan9/cwfs(4) | Rev: Mon Sep 21 04:14:11 BST 2009 |