Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
minix_fs.h
Go to the documentation of this file.
1 #ifndef _LINUX_MINIX_FS_H
2 #define _LINUX_MINIX_FS_H
3 
4 #include <linux/types.h>
5 #include <linux/magic.h>
6 
7 /*
8  * The minix filesystem constants/structures
9  */
10 
11 /*
12  * Thanks to Kees J Bot for sending me the definitions of the new
13  * minix filesystem (aka V2) with bigger inodes and 32-bit block
14  * pointers.
15  */
16 
17 #define MINIX_ROOT_INO 1
18 
19 /* Not the same as the bogus LINK_MAX in <linux/limits.h>. Oh well. */
20 #define MINIX_LINK_MAX 250
21 #define MINIX2_LINK_MAX 65530
22 
23 #define MINIX_I_MAP_SLOTS 8
24 #define MINIX_Z_MAP_SLOTS 64
25 #define MINIX_VALID_FS 0x0001 /* Clean fs. */
26 #define MINIX_ERROR_FS 0x0002 /* fs has errors. */
27 
28 #define MINIX_INODES_PER_BLOCK ((BLOCK_SIZE)/(sizeof (struct minix_inode)))
29 
30 /*
31  * This is the original minix inode layout on disk.
32  * Note the 8-bit gid and atime and ctime.
33  */
34 struct minix_inode {
42 };
43 
44 /*
45  * The new minix inode has all the time entries, as well as
46  * long block numbers and a third indirect block (7+1+1+1
47  * instead of 7+1+1). Also, some previously 8-bit values are
48  * now 16-bit. The inode is now 64 bytes instead of 32.
49  */
50 struct minix2_inode {
60 };
61 
62 /*
63  * minix super-block data on disk
64  */
76 };
77 
78 /*
79  * V3 minix super-block data on disk
80  */
95 };
96 
99  char name[0];
100 };
101 
104  char name[0];
105 };
106 #endif