[PATCH]Add JFFS2 eraseblock header support

zhao forrest zhao_fusheng at hotmail.com
Tue Sep 20 03:45:37 EDT 2005


Hi,
This is the patch for eraseblock header, the high-level design
can be found at http://lists.infradead.org/pipermail/linux-mtd/
2005-August/013374.html.

This patch closely follows the high-level design. Here I list
some main implementation points:
1 eraseblock_header replaces clean marker, clean marker no
longer exists.
2 now eraseblock header carrys version and erase count, but the
length of eraseblock header is not constant and it allows further
extention.
3 for NAND flash, the eraseblock header is stored in OOB and it
may span several OOBs
4 old JFFS2 binaries reject mounting new JFFS2 images
5 change the type of dirent/inode nodes and adding INCOMPAT flag
there in order to make old JFFS2 binaries reject mounting new
JFFS2 images for NAND flash
6 new JFFS2 binary, when mounting an old JFFS2 image, will reject
mounting unless the old JFFS2 image doesn't use 1:N(N>1)mapping.
7 If JFFS2 finds that the version of the image is larger, it will
reject mounting the image
8 currently this patch doesn't take the "eraseblock summary" patch
into account. It's greatly appreciated if Ferenc can help to add
the missing part :)

Your comments are welcome.

Thanks,
Forrest

-------------- next part --------------
A non-text attachment was scrubbed...
Name: eraseblock_header.patch
Type: application/octet-stream
Size: 39148 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20050920/e49607a8/attachment.obj 


More information about the linux-mtd mailing list