sofs19
0.1
FUSE based file system
|
Go to the documentation of this file.
10 #ifndef __SOFS19_INODE__
11 #define __SOFS19_INODE__
26 #define INODE_FREE 0001000
35 #define N_DOUBLE_INDIRECT 8
#define N_INDIRECT
number of indirect block references in the inode
Definition: inode.h:32
#define N_DIRECT
number of direct block references in the inode
Definition: inode.h:29
uint32_t i1[N_INDIRECT]
references to blocks that extend the d array
Definition: inode.h:80
uint32_t next
next free inode
Definition: inode.h:67
uint16_t mode
inode mode: it stores the file type and permissions. (see man 2 stat).
Definition: inode.h:44
Definition of the inode data type.
Definition: inode.h:38
uint32_t d[N_DIRECT]
direct references to the first data blocks with file's data
Definition: inode.h:77
uint32_t mtime
time of last change to file information
Definition: inode.h:71
uint32_t owner
user ID of the file owner
Definition: inode.h:50
uint16_t lnkcnt
link count: number of hard links (directory entries) pointing to the inode
Definition: inode.h:47
uint32_t i2[N_DOUBLE_INDIRECT]
references to a block that extends the i1 array
Definition: inode.h:83
uint32_t ctime
time of last change to inode information
Definition: inode.h:74
#define N_DOUBLE_INDIRECT
number of double indirect block references in the inode
Definition: inode.h:35
uint32_t atime
time of last access to file information
Definition: inode.h:65
uint32_t size
file size in bytes:
Definition: inode.h:56
uint32_t blkcnt
block count: total number of blocks used by the file
Definition: inode.h:59
uint32_t group
group ID of the file owner
Definition: inode.h:53