man(1) Manual page archive

     KFSCMD(8)                                               KFSCMD(8)

          kfscmd, ksync - kfs administration

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


          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 ser-
          vice to (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 com-
          mands are multiple words and should be quoted to appear as a
          single argument to rc(1).

          allow     Turn permission checking off (to simplify adminis-

          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 checking 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 pre-
                    sent, `a' creates an append only file, `d' creates
                    a directory, and `l' creates a file that is

     KFSCMD(8)                                               KFSCMD(8)


          sync      write to disk all of the dirty blocks in the mem-
                    ory cache.

          stats     Report statistics about the performance of the
                    file system.

          user      Re-initialize authentication information by read-
                    ing /adm/users.

          check [PRdfprtw]
                    Check the file system.  The options are
                    p    print the names of directories as they are
                    P    print the names of all files as they are
                    r    read all of the data blocks and check the
                    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
                    w    write all of the blocks that are touched.


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