The -r option causes the file system to be reset to an initially empty state (`reamed'). Permission checking is turned off, to allow any desired permissions and file ownership to be set. (In other words, the -W and -P options are also set by default.) The file system block size is set to the bsize given by the -b option (default: 1024 bytes), which must be a multiple of 512 and not greater than 16k bytes. The block size is stored in the file and need not be given again. The storage representation is always little-endian.
Otherwise, the file system is checked if required, unless the -c option is given.
The contents of the file system can be provided by using commands such as mkdir(1), cp(1) and rm(1) in dir, or built from a description using mkfs(8).
The mapping between user names and internal IDs within the file system is established by the file adm/users (within the file system itself) as described by users(6), which kfs reads when it starts. If no such file exists, as for instance when the file system is initially empty, kfs uses a minimal set corresponding to the following users(6) file:
-1:adm:adm: 0:none:adm: 9999:noworld:: 10000:sys:: 10001:upas:upas: 10002:bootes:bootes: 10006:inferno::
Any users(6) file used with kfs should include entries for at least adm, none, and noworld as above (although group membership can vary).
Kfs can optionally serve a control file, for use by kfscmd(8). If the -n option is given, kfs creates a channel /chan/kfs.name.cmd and accepts commands on it from the user that started kfs.
Other options are:
zeros 1024 2048 >kfs.file mount -c {disk/kfs -r kfs.file} /n/local
The -c option to mount allows files to be created in /n/local.
KFS(4 ) | Rev: Tue Mar 31 02:42:39 GMT 2015 |