ffsinode(0) CLIX ffsinode(0)
NAME
ffsinode - Structure of a Fast File System (FFS) disk inode
SYNOPSIS
#include <sys/types.h>
#include <sys/fs/ffsinode.h>
DESCRIPTION
An inode for a plain file or directory has the following structure defined
in <sys/fs/ffsinode.h>:
struct icommon {
u_short ic_mode; /* 0: mode and type of file */
short ic_nlink; /* 2: number of links to file */
uid_t ic_uid; /* 4: owner's user ID */
gid_t ic_gid; /* 6: owner's group ID */
quad ic_size; /* 8: number of bytes in file */
time_t ic_atime; /* 16: time last accessed */
long ic_atspare;
time_t ic_mtime; /* 24: time last modified */
long ic_mtspare;
time_t ic_ctime; /* 32: last time inode changed */
long ic_ctspare;
daddr_t ic_db[NDADDR]; /* 40: disk block addresses */
daddr_t ic_ib[NIADDR]; /* 88: indirect blocks */
long ic_flags; /* 100: status, currently unused */
long ic_blocks; /* 104: blocks actually held */
long ic_gen; /* 108: generation count for NFS */
long ic_spare[4]; /* 112: reserved, currently unused */
};
struct ffsdinode {
union {
struct icommon di_icom;
char di_size[128];
} di_un;
};
RELATED INFORMATION
Functions: stat(2)
Files: ffsfs(0)
2/94 - Intergraph Corporation 1