glenda.party
term% ls -F
term% cat index.txt
KFSCMD(8)                   System Manager's Manual                  KFSCMD(8)



NAME
       kfscmd, ksync - kfs administration

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

       disk/ksync

DESCRIPTION
       Kfs  is  a  local  user-level  file server for a Plan 9 terminal with a
       disk.  Kfscmd transmits commands to the kfs server (see  kfs(4)).   The
       -n  option changes the name of the kfs service to kfs.name (by default,
       full name is just kfs).

       Ksync executes the sync command for all active kfs servers.

       The known commands are described below.  Note that  some  commands  are
       multiple  words  and should be quoted to appear as a single argument to
       rc(1).

       allow     Turn permission checking off (to simplify administration).

       disallow  Turn permission checking on.

       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 check‐
                 ing the file system with option f (see below).

       create file owner group mode [adl]
                 Create the file.  Owner and group are users in /adm/users and
                 mode  is an octal number.  If present, creates an append only
                 file, creates a directory, and creates a file that is  exclu‐
                 sive-use.

       sync      write to disk all of the dirty blocks in the memory cache.

       stats     Report statistics about the performance of the file system.

       user      Re-initialize    authentication    information   by   reading
                 /adm/users.

       check [PRdfprtw]
                 Check the file system.  The options are
                 p      print the names of directories as they are checked.
                 P      print the names of all files as they are checked.
                 r      read all of the data blocks and check the tags.
                 f      rebuild the list of free blocks.
                 d      delete redundant references to a block.
                 t      fix bad tags.
                 c      fix bad tags and clear the contents of the block.
                 w      write all of the blocks that are touched.

SOURCE
       /sys/src/cmd/disk/kfscmd.c
       /$objtype/bin/disk/ksync

SEE ALSO
       kfs(4), mkfs(8), prep(8), wren(3)



                                                                     KFSCMD(8)