mtd/include/linux jffs2.h,1.36,1.37 jffs2_fs_sb.h,1.52,1.53
havasi at infradead.org
havasi at infradead.org
Wed Sep 7 04:35:00 EDT 2005
- Previous message: mtd/fs/jffs2 summary.c, NONE, 1.1 summary.h, NONE,
1.1 Makefile.common, 1.10, 1.11 build.c, 1.77, 1.78 debug.h,
1.14, 1.15 dir.c, 1.88, 1.89 file.c, 1.102, 1.103 fs.c, 1.64,
1.65 gc.c, 1.153, 1.154 nodelist.h, 1.139, 1.140 nodemgmt.c,
1.124, 1.125 os-linux.h, 1.60, 1.61 scan.c, 1.121,
1.122 super-v24.c, 1.85, 1.86 super.c, 1.108, 1.109 wbuf.c,
1.97, 1.98 write.c, 1.95, 1.96 writev.c, 1.6, 1.7
- Next message: mtd/util summary.h, 1.3, 1.4 sumtool.c, 1.4, 1.5 Makefile, 1.58,
1.59 jffs2dump.c, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/include/linux
In directory phoenix.infradead.org:/tmp/cvs-serv3759/include/linux
Modified Files:
jffs2.h jffs2_fs_sb.h
Log Message:
[JFFS2] Adding erase block summary support (mount time improvement)
The goal of summary is to speed up the mount time. Erase block summary (EBS)
stores summary information at the end of every (closed) erase block. It is
no longer necessary to scan all nodes separetly (and read all pages of them)
just read this "small" summary, where every information is stored which is
needed at mount time.
This summary information is stored in a JFFS2_FEATURE_RWCOMPAT_DELETE. During
the mount process if there is no summary info the orignal scan process will
be executed. EBS works with NAND and NOR flashes, too.
There is a user space tool called sumtool to generate this summary
information for a JFFS2 image.
Index: jffs2.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/jffs2.h,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- jffs2.h 26 Jul 2005 13:19:36 -0000 1.36
+++ jffs2.h 7 Sep 2005 08:34:55 -0000 1.37
@@ -28,6 +28,9 @@
#define JFFS2_EMPTY_BITMASK 0xffff
#define JFFS2_DIRTY_BITMASK 0x0000
+/* Summary node MAGIC marker */
+#define JFFS2_SUM_MAGIC 0x02851885
+
/* We only allow a single char for length, and 0xFF is empty flash so
we don't want it confused with a real length. Hence max 254.
*/
@@ -60,6 +63,8 @@
#define JFFS2_NODETYPE_CLEANMARKER (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 3)
#define JFFS2_NODETYPE_PADDING (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 4)
+#define JFFS2_NODETYPE_SUMMARY (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 6)
+
// Maybe later...
//#define JFFS2_NODETYPE_CHECKPOINT (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 3)
//#define JFFS2_NODETYPE_OPTIONS (JFFS2_FEATURE_RWCOMPAT_COPY | JFFS2_NODE_ACCURATE | 4)
@@ -146,10 +151,24 @@
uint8_t data[0];
} __attribute__((packed));
+struct jffs2_summary_node{
+ jint16_t magic;
+ jint16_t nodetype; /* = JFFS2_NODETYPE_INODE_SUM */
+ jint32_t totlen;
+ jint32_t hdr_crc;
+ jint32_t sum_num; /* number of sum entries*/
+ jint32_t cln_mkr; /* clean marker size, 0 = no cleanmarker */
+ jint32_t padded; /* sum of the size of padding nodes */
+ jint32_t sum_crc; /* summary information crc */
+ jint32_t node_crc; /* node crc */
+ jint32_t sum[0]; /* inode summary info */
+} __attribute__((packed));
+
union jffs2_node_union {
struct jffs2_raw_inode i;
struct jffs2_raw_dirent d;
struct jffs2_unknown_node u;
+ struct jffs2_summary_node s;
};
#endif /* __LINUX_JFFS2_H__ */
Index: jffs2_fs_sb.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/jffs2_fs_sb.h,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- jffs2_fs_sb.h 19 May 2005 16:12:17 -0000 1.52
+++ jffs2_fs_sb.h 7 Sep 2005 08:34:56 -0000 1.53
@@ -112,6 +112,8 @@
uint32_t fsdata_len;
#endif
+ struct jffs2_summary *summary; /* Summary information */
+
/* OS-private pointer for getting back to master superblock info */
void *os_priv;
};
- Previous message: mtd/fs/jffs2 summary.c, NONE, 1.1 summary.h, NONE,
1.1 Makefile.common, 1.10, 1.11 build.c, 1.77, 1.78 debug.h,
1.14, 1.15 dir.c, 1.88, 1.89 file.c, 1.102, 1.103 fs.c, 1.64,
1.65 gc.c, 1.153, 1.154 nodelist.h, 1.139, 1.140 nodemgmt.c,
1.124, 1.125 os-linux.h, 1.60, 1.61 scan.c, 1.121,
1.122 super-v24.c, 1.85, 1.86 super.c, 1.108, 1.109 wbuf.c,
1.97, 1.98 write.c, 1.95, 1.96 writev.c, 1.6, 1.7
- Next message: mtd/util summary.h, 1.3, 1.4 sumtool.c, 1.4, 1.5 Makefile, 1.58,
1.59 jffs2dump.c, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list