INODE(4) — Kubota Pacfic Computer Inc.
NAME
inode − format of an i-node
SYNOPSIS
#include <sys/types.h>
#include <sys/ino.h>
DESCRIPTION
An i-node for a plain file or directory in a file system has the following structure defined by <sys/ino.h>.
/∗Inode structure as it appears on a disk block. ∗/
structdinode
{
ushortdi_mode;/∗ mode and type of file ∗/
shortdi_nlink; /∗ number of links to file ∗/
ushortdi_uid; /∗ owner’s user id ∗/
ushortdi_gid; /∗ owner’s group id ∗/
off_tdi_size; /∗ number of bytes in file ∗/
char di_addr[39];/∗ disk block addresses ∗/
chardi_gen;/∗ file generation number ∗/
time_tdi_atime; /∗ time last accessed ∗/
time_tdi_mtime; /∗ time last modified ∗/
time_tdi_ctime; /∗ time created ∗/
};
/∗
∗ The 39 address bytes: 13 addresses of 3 bytes each.
∗
∗ The 40’th byte is used as generation count to allow detection of
∗ the disk inode being reused.
∗/
For the meaning of the defined types off_t and time_t see types(5).
SEE ALSO
September 02, 1992