[manual index][section index]

NAME

kfscmd - kfs administration

SYNOPSIS

disk/kfscmd [-n name] cmd ...

DESCRIPTION

Kfscmd issues commands to a kfs(4) server that was started with the -n option to create a control file. Kfscmd's own -n option names the file system to which the cmd applies; it is main by default.

The known commands are described below. Note that some commands are multiple words (eg, check and its flags) and should be quoted to appear as a single argument to sh(1).


allow
Turn permission checking off (to simplify administration). Equivalent to the -P and -W options to kfs(4).
allowoff
disallow
Turn permission checking on (again).
halt
write all changed blocks and stop the file system.
help
print the list of commands.
rename file name
Change the name of file to name.
newuser user
Add user to /adm/users and make the standard directories needed for booting.
remove file
Remove file and place its blocks on the free list.
clri file
Remove file but do not place the blocks on the free list. This command can be used to remove files that have duplicated blocks. The non-duplicate blocks can be retrieved by checking the file system with option f (see below).
createfileownergroupmode[adl]
Create the file. Owner and group are users in /adm/users and mode is an octal number. If present, a creates an append only file, d creates a directory, and l creates a file that is exclusive-use.
sync
write to disk all of the dirty blocks in the memory cache.
users
Reinitialise authentication information by reading /adm/users.
check [cdfpPqrtw]
Check the file system and print summary information. The options are
c
fix bad tags and clear the contents of the block.
d
delete redundant references to a block.
f
rebuild the list of free blocks.
p
print the names of directories as they are checked.
P
print the names of all files as they are checked.
q
quiet mode: report errors, but suppress summary information.
r
read all of the data blocks and check the tags.
t
fix bad tags.
w
write all of the blocks that are touched.

SOURCE

/appl/cmd/disk/kfscmd.b

SEE ALSO

sd(3), kfs(4), mkfs(8)

KFSCMD(8) Rev:  Fri May 07 10:26:53 GMT 2004