1 #ifndef jffs2_private_h
2 #define jffs2_private_h
4 #include <jffs2/jffs2.h>
13 struct b_node *dirListTail;
14 struct b_node *dirListHead;
17 struct b_node *fragListTail;
18 struct b_node *fragListHead;
30 struct b_compr_info compr_info[JFFS2_NUM_COMPR];
34 hdr_crc(struct jffs2_unknown_node *node)
36 u32 crc = crc32_no_comp(0, (unsigned char *)node, sizeof(struct jffs2_unknown_node) - 4);
37 u32 crc_blah = crc32_no_comp(~0, (unsigned char *)node, sizeof(struct jffs2_unknown_node) - 4);
41 if (node->hdr_crc != crc) {
49 dirent_crc(struct jffs2_raw_dirent *node)
51 if (node->node_crc != crc32_no_comp(0, (unsigned char *)node, sizeof(struct jffs2_raw_dirent) - 8)) {
59 dirent_name_crc(struct jffs2_raw_dirent *node)
61 if (node->name_crc != crc32_no_comp(0, (unsigned char *)&(node->name), node->nsize)) {
69 inode_crc(struct jffs2_raw_inode *node)
71 if (node->node_crc != crc32_no_comp(0, (unsigned char *)node, sizeof(struct jffs2_raw_inode) - 8)) {
78 #endif /* jffs2_private.h */