FreeNOS
Data Structures | Typedefs
LinnInode.h File Reference
#include <Types.h>

Go to the source code of this file.

Data Structures

struct  LinnInode
 Structure of an inode on the disk in the LinnFS filesystem. More...
 

Macros

Special Inode Numbers
#define LINN_INODE_ROOT   0
 Root inode. More...
 
Inode (in)direct block counts.
#define LINN_INODE_DIR_BLOCKS   4
 Direct blocks. More...
 
#define LINN_INODE_IND_BLOCKS   (LINN_INODE_DIR_BLOCKS + 1)
 Indirect blocks. More...
 
#define LINN_INODE_DIND_BLOCKS   (LINN_INODE_IND_BLOCKS + 1)
 Double indirect blocks. More...
 
#define LINN_INODE_TIND_BLOCKS   (LINN_INODE_DIND_BLOCKS + 1)
 Triple indirect blocks. More...
 
#define LINN_INODE_BLOCKS   (LINN_INODE_TIND_BLOCKS + 1)
 Total number of block pointers in an LinnInode. More...
 
Inode macros.
#define LINN_INODE_NUM_BLOCKS(super, inode)
 Calculate the number of blocks used in an LinnInode. More...
 

Typedefs

typedef struct LinnInode LinnInode
 Structure of an inode on the disk in the LinnFS filesystem. More...