Go to the documentation of this file.
13 #ifndef __LINUX_JFFS2_H__
14 #define __LINUX_JFFS2_H__
16 #include <linux/types.h>
17 #include <linux/magic.h>
24 #define JFFS2_OLD_MAGIC_BITMASK 0x1984
25 #define JFFS2_MAGIC_BITMASK 0x1985
26 #define KSAMTIB_CIGAM_2SFFJ 0x8519
27 #define JFFS2_EMPTY_BITMASK 0xffff
28 #define JFFS2_DIRTY_BITMASK 0x0000
31 #define JFFS2_SUM_MAGIC 0x02851885
36 #define JFFS2_MAX_NAME_LEN 254
39 #define JFFS2_MIN_DATA_LEN 128
41 #define JFFS2_COMPR_NONE 0x00
42 #define JFFS2_COMPR_ZERO 0x01
43 #define JFFS2_COMPR_RTIME 0x02
44 #define JFFS2_COMPR_RUBINMIPS 0x03
45 #define JFFS2_COMPR_COPY 0x04
46 #define JFFS2_COMPR_DYNRUBIN 0x05
47 #define JFFS2_COMPR_ZLIB 0x06
48 #define JFFS2_COMPR_LZO 0x07
50 #define JFFS2_COMPAT_MASK 0xc000
51 #define JFFS2_NODE_ACCURATE 0x2000
53 #define JFFS2_FEATURE_INCOMPAT 0xc000
55 #define JFFS2_FEATURE_ROCOMPAT 0x8000
57 #define JFFS2_FEATURE_RWCOMPAT_COPY 0x4000
59 #define JFFS2_FEATURE_RWCOMPAT_DELETE 0x0000
61 #define JFFS2_NODETYPE_DIRENT (JFFS2_FEATURE_INCOMPAT | JFFS2_NODE_ACCURATE | 1)
62 #define JFFS2_NODETYPE_INODE (JFFS2_FEATURE_INCOMPAT | JFFS2_NODE_ACCURATE | 2)
63 #define JFFS2_NODETYPE_CLEANMARKER (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 3)
64 #define JFFS2_NODETYPE_PADDING (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 4)
66 #define JFFS2_NODETYPE_SUMMARY (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 6)
68 #define JFFS2_NODETYPE_XATTR (JFFS2_FEATURE_INCOMPAT | JFFS2_NODE_ACCURATE | 8)
69 #define JFFS2_NODETYPE_XREF (JFFS2_FEATURE_INCOMPAT | JFFS2_NODE_ACCURATE | 9)
72 #define JFFS2_XPREFIX_USER 1
73 #define JFFS2_XPREFIX_SECURITY 2
74 #define JFFS2_XPREFIX_ACL_ACCESS 3
75 #define JFFS2_XPREFIX_ACL_DEFAULT 4
76 #define JFFS2_XPREFIX_TRUSTED 5
78 #define JFFS2_ACL_VERSION 0x0001
85 #define JFFS2_INO_FLAG_PREREAD 1
88 #define JFFS2_INO_FLAG_USERCOMPR 2