Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mkproto.1ffs(1M) — sysv — mips UMIPS RISC/os 4.52

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fsck.ffs(1M)

newfs.ffs(1M)

fs.ffs(4)

dir.ffs(4)



MKPROTO.FFS(1M-SysV)RISC/os Reference Manual MKPROTO.FFS(1M-SysV)



NAME
     mkproto.ffs - construct a prototype file system

SYNOPSIS
     /etc/mkproto.ffs special proto

DESCRIPTION
     mkproto.ffs is used to bootstrap a new file system.  First a
     new file system is created using newfs.ffs(1M).  mkproto.ffs
     is then used to copy files from the old file system into the
     new file system according to the directions found in the
     prototype file proto. The prototype file contains tokens
     separated by spaces or new lines.  The first tokens comprise
     the specification for the root directory.  File specifica-
     tions consist of tokens giving the mode, the user-id, the
     group id, and the initial contents of the file.  The syntax
     of the contents field depends on the mode.

     The mode token for a file is a 6 character string.  The
     first character specifies the type of the file.  (The char-
     acters -bcd specify regular, block special, character spe-
     cial and directory files respectively.)  The second charac-
     ter of the type is either u or - to specify set-user-id mode
     or not.  The third is g or - for the set-group-id mode.  The
     rest of the mode is a three digit octal number giving the
     owner, group, and other read, write, execute permissions
     (see chmod(1)).

     Two decimal number tokens come after the mode; they specify
     the user and group ID's of the owner of the file.

     If the file is a regular file, the next token is a pathname
     whence the contents and size are copied.

     If the file is a block or character special file, two
     decimal number tokens follow which give the major and minor
     device numbers.

     If the file is a directory, mkproto.ffs makes the entries .
     and .. and then reads a list of names and (recursively) file
     specifications for the entries in the directory.  The scan
     is terminated with the token $.

     A sample prototype specification follows:

          d--777 3 1
          usr  d--777 3 1
               sh   ---755 3 1 /bin/sh
               ken  d--755 6 1
                    $
               b0   b--644 3 1 0 0
               c0   c--644 3 1 0 0



                         Printed 1/15/91                   Page 1





MKPROTO.FFS(1M-SysV)RISC/os Reference Manual MKPROTO.FFS(1M-SysV)



               $
          $

SEE ALSO
     fsck.ffs(1M), newfs.ffs(1M).
     fs.ffs(4), dir.ffs(4) in the Programmer's Reference Manual.

BUGS
     There should be some way to specify links.

     There should be some way to specify bad blocks.

     mkproto.ffs can only be run on virgin file systems.  It
     should be possible to copy files into existent file systems.









































 Page 2                  Printed 1/15/91



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026