3 kfscmd, ksync \- kfs administration
13 is a local user-level file server for a Plan 9 terminal with a disk.
15 transmits commands to the
21 option changes the name of the kfs service to
23 (by default, full name is just
29 command for all active
33 The known commands are described below.
34 Note that some commands are multiple words and
35 should be quoted to appear as a single argument to
37 .TP \w'\fLallowoff\ \fIn'u
39 Turn permission checking off (to simplify administration).
44 Turn permission checking on.
47 Disable authentication of users.
50 Write all changed blocks and stop the file system.
53 The opposite of halt; restart the file system.
56 Print the list of commands.
58 .BI "rename " "file name"
64 may be a single path element or a full path; if it is a full path,
65 every element along the path must exist except the last.
72 and make the standard directories needed for booting.
77 and place its blocks on the free list.
82 but do not place the blocks on the free list.
83 This command can be used to remove files that have duplicated blocks.
84 The non-duplicate blocks can be retrieved by checking the file system
89 .BI create \ file\ owner\ group\ mode\ [adl]
90 Create the file. Owner and group are users in
92 and mode is an octal number.
95 creates an append only file,
97 creates a directory, and
99 creates a file that is exclusive-use.
102 Write to disk all of the dirty blocks in the memory cache.
105 Toggle whether atimes are updated as files and directories
106 are accessed. By default, atimes are updated. On laptops it can be
107 useful to turn off atime updates to reduce disk accesses.
110 Report statistics about the performance of the file system.
113 Re-initialize authentication information by reading
121 it looks for a group named
123 If such a group exists, then the entire file system
124 will appear read-only to users not in the group.
125 If a write group exists but no one is in it,
126 it will be impossible to edit
128 to correct the problem.
131 command turns off write group checking until the next
137 Change the `console' to the named file system (default is the main system).
140 Toggle tracing of 9P messages.
143 Check the file system and print summary information.
149 fix bad tags and clear the contents of the block.
152 delete redundant references to a block, fix bad UTF filenames.
155 rebuild the list of free blocks.
158 print the names of directories as they are checked.
161 print the names of all files as they are checked.
164 quiet mode: report errors, but suppress summary information
167 read all of the data blocks and check the tags.
173 write all of the blocks that are touched.
177 .BI listen " [address]
178 Start a listener to serve the network at
182 This feature is intended to facilitate small networks of a couple
183 machines in the situation when convenience is more
184 important than performance.
185 This command is only useful on machines with
186 (possibly simulated) NVRAM, which needs to be readable
194 The production file server
197 is strongly encouraged for anything more than casual use.
200 When listening to the network, the default behavior is that the user
202 may only attach over connections that have already
203 authenticated as someone else.
204 This prevents just anyone from being
205 able to dial your server and attach as
209 command toggles whether
211 can attach without such a chaperone.
214 .B /sys/src/cmd/disk/kfscmd.c
216 .B /$objtype/bin/disk/ksync