INODE(5) — Series 500 Implementation
NAME
inode − format of an i-node
SYNOPSIS
#include <sys/types.h>
#include <sys/param.h>
#include <sys/ino.h>
HP-UX COMPATIBILITY
Level: HP-UX/STANDARD
Origin: HP
Remarks: This entry describes the i-node structure for the Series 500. Refer to other inode manual pages for information valid for other implementations.
DESCRIPTION
An i-node for an ordinary file or directory in a file system has the following structure, as defined in sys/ino.h:
/∗
∗ I-node structure as it appears on disc. This i-node is actually
∗ a file information record (FIR) in the HP SDF disc format.
∗/
struct dinode {
ushortdi_type/∗ =1 for inodes ∗/
ushortdi_ftype;/∗ file type ∗/
ushortdi_count;/∗ reference count ∗/
shortdi_uftype;/∗ user file type (LIF) ∗/
time_iosdi_ctime;/∗ time created ∗/
unsigneddi_other;/∗ public capabilities ∗/
ino_tdi_protect;/∗ file protect rec. none=-1 ∗/
ino_tdi_label;/∗ file label rec. none=-1 ∗/
intdi_blksz;/∗ file size in blocks ∗/
intdi_max;∗ largest byte writable ∗/
ushortdi_exsz;/∗ recom. extent size ∗/
ushortdi_exnum;/∗ no. i-node extents (1-4) ∗/
struct {
daddr_tdi_startblk; /∗ extent start blk ∗/
intdi_numblk; /∗ no. blks in extent ∗/
} di_extent[4];
ino_tdi_exmap;/∗ inode 1st extent map ∗/
/∗ none = -1 ∗/
intdi_size;/∗ current size, bytes ∗/
/∗ Warning! Next 2 fields apply only to directories ∗/
ino_tdi_parent;/∗ inode of parent ∗/
chardi_name[16];/∗ name of this directory ∗/
/∗ The remaining fields defined only for local ∗/
/∗ implementation of structured directory format. ∗/
time_tdi_atime;/∗ time last accessed ∗/
time_iosdi_mtime;/∗ time last mod. ∗/
intdi_recsz;/∗ logical record size ∗/
ushortdi_uid;/∗ owner’s user id ∗/
ushortdi_gid;/∗ owner’s group id ∗/
ushortdi_mode;/∗ mode, type of file ∗/
chardi_res2[2];/∗ unused ∗/
/∗ The next field used only if file is ∗/
/∗ a device file; otherwise it is zero ∗/
dev_tdi_dev;/∗ description of device ∗/
};
The meaning of the type declarations included above can be found in types(7).
FILES
/usr/include/sys/ino.h
SEE ALSO
Hewlett-Packard — last mod. May 11, 2021