Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ inode_s5(4) — NEWS-os 5.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stat(2)

l3tot(3C)

fs(4)

types(5)



inode(4)                  FILE FORMATS                   inode(4)



NAME
     inode (s5) - format of an s5 i-node

SYNOPSIS
     #include <sys/types.h>
     #include <sys/fs/s5ino.h>

DESCRIPTION
     An i-node for a plain file or directory in an s4 file system
     has the following structure defined by <sys/fs/s5ino.h>.

          /* Inode structure as it appears on a disk block. */
          struct dinode
          {
                 omodet      dimode;     /* mode and type of file */
                 onlinkt     dinlink;    /* number of links to file */
                 ouidt       diuid;      /* owner's user id */
                 ogidt       digid;      /* owner's group id */
                 offt         disize;     /* number of bytes in file */
                 char          diaddr[39]; /* disk block addresses */
                 unsigned char digen;      /* file generation number */
                 timet        diatime;    /* time last accessed */
                 timet        dimtime;    /* time last modified */
                 timet        dictime;    /* time status last changed */
          };
          /*
           * Of the 40 address bytes:
           *    39 are used as disk addresses
           *    13 addresses of 3 bytes each
           *    and the 40th is used as a
           *   file generation number
           */

     For the meaning of the defined types offt  and  timet  see
     types(5).

SEE ALSO
     stat(2), l3tot(3C), s5-specific fs(4), types(5)

















                                                                1



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