Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ inode(4) — HP-UX 7.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stat(2)

fs(4)

types(5)

INODE(4)

NAME

inode − format of an inode

SYNOPSIS

#include <sys/types.h>
#include <sys/ino.h>

DESCRIPTION

An inode 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 {
u_shortdi_mode;/∗ mode and type of file ∗/
shortdi_nlink;/∗ number of links to file ∗/
shortdi_uid;/∗ owner’s user id ∗/
shortdi_gid;/∗ owner’s group id ∗/
quaddi_size;/∗ number of bytes in file ∗/
time_tdi_atime;/∗ time last accessed ∗/
longdi_atspare;
time_tdi_mtime;/∗ time last modified ∗/
longdi_mtspare;
time_tdi_ctime;/∗ time of last file status change ∗/
longdi_ctspare;
daddr_tdi_db[NDADDR]; /∗ disk block addresses ∗/
daddr_tdi_ib[NIADDR]; /∗ indirect blocks ∗/
longdi_flags;/∗ status, currently unused ∗/
longdi_blocks;/∗ blocks actually held ∗/
longdi_gen;/∗ file generation number ∗/
longdi_fversion;/∗ file version number ∗/
longdi_spare[2];/∗ reserved, currently unused ∗/
ino_tdi_contin;/∗ continuation inode number ∗/
};

A continuation inode contains a file’s optional access control list (ACL) entries.  It has the following structure:

/∗ Continuation inode as it appears on a disk block ∗/

structcinode {
u_shortci_mode;/∗ mode and type of file ∗/
shortci_nlink;/∗ number of links to file ∗/
/∗ optional ACL entries ∗/
structacl_entry ci_acl[NOPTENTRIES];
charci_spare[46];/∗ reserved, currently unused ∗/
};

For the meaning of the defined types u_short, quad, daddr_t and time_t, see types(5).

Continuation inodes are distinguished from other inodes by their file type. See /usr/include/sys/inode.h for the definition of these values. 

See /usr/include/sys/inode.h for the definition of inode structures for special files, pipes, or FIFOs. 

DEPENDENCIES

Series 800
The di_fversion field is not used. 

Continuation inodes are not currently implemented. 

FILES

/usr/include/sys/ino.h

SEE ALSO

stat(2), fs(4), types(5). 

Hewlett-Packard Company  —  HP-UX Release 7.0: Sept 1989

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