Manual pages › File formats and configuration files (4)
inode_s5(4)
format of an s5 i-node
From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.
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
{
o_mode_t di_mode; /* mode and type of file */
o_nlink_t di_nlink; /* number of links to file */
o_uid_t di_uid; /* owner's user id */
o_gid_t di_gid; /* owner's group id */
off_t di_size; /* number of bytes in file */
char di_addr[39]; /* disk block addresses */
unsigned char di_gen; /* file generation number */
time_t di_atime; /* time last accessed */
time_t di_mtime; /* time last modified */
time_t di_ctime; /* 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 off_t and time_t see types(5).
SEE ALSO
stat(2), l3tot(3C), s5-specific fs(4), types(5)