Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
qnx4_fs.h
Go to the documentation of this file.
1 /*
2  * Name : qnx4_fs.h
3  * Author : Richard Frowijn
4  * Function : qnx4 global filesystem definitions
5  * History : 23-03-1998 created
6  */
7 #ifndef _LINUX_QNX4_FS_H
8 #define _LINUX_QNX4_FS_H
9 
10 #include <linux/types.h>
11 #include <linux/qnxtypes.h>
12 #include <linux/magic.h>
13 
14 #define QNX4_ROOT_INO 1
15 
16 #define QNX4_MAX_XTNTS_PER_XBLK 60
17 /* for di_status */
18 #define QNX4_FILE_USED 0x01
19 #define QNX4_FILE_MODIFIED 0x02
20 #define QNX4_FILE_BUSY 0x04
21 #define QNX4_FILE_LINK 0x08
22 #define QNX4_FILE_INODE 0x10
23 #define QNX4_FILE_FSYSCLEAN 0x20
24 
25 #define QNX4_I_MAP_SLOTS 8
26 #define QNX4_Z_MAP_SLOTS 64
27 #define QNX4_VALID_FS 0x0001 /* Clean fs. */
28 #define QNX4_ERROR_FS 0x0002 /* fs has errors. */
29 #define QNX4_BLOCK_SIZE 0x200 /* blocksize of 512 bytes */
30 #define QNX4_BLOCK_SIZE_BITS 9 /* blocksize shift */
31 #define QNX4_DIR_ENTRY_SIZE 0x040 /* dir entry size of 64 bytes */
32 #define QNX4_DIR_ENTRY_SIZE_BITS 6 /* dir entry size shift */
33 #define QNX4_XBLK_ENTRY_SIZE 0x200 /* xblk entry size */
34 #define QNX4_INODES_PER_BLOCK 0x08 /* 512 / 64 */
35 
36 /* for filenames */
37 #define QNX4_SHORT_NAME_MAX 16
38 #define QNX4_NAME_MAX 48
39 
40 /*
41  * This is the original qnx4 inode layout on disk.
42  */
60 };
61 
68 };
69 
70 struct qnx4_xblk {
77  char xblk_signature[8];
79 };
80 
86 };
87 
88 #endif