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