jffs2 filesystem/flash data integrity

David Woodhouse dwmw2 at infradead.org
Sun Apr 19 03:33:03 EDT 2009


On Sat, 2009-04-18 at 19:55 -0700, Manoj wrote:
> Hi,
> 
> I have a jffs2 filesystem on NAND flash. After mounting the jffs2 fs,
> I create a 2MB file and make a copy of it using "cp" command. When I
> do a "diff" between two files, the files are same. Now, I unmount the
> fs and re-mount it. When I do a "diff" between the two files, they
> differ. Looking at the difference, I see that around 4K of data in one
> file has 0s in it. This 4K hole can be anywhere in the file.  There is
> no issue with a 1MB file.

Please reproduce with 'CONFIG_JFFS2_FS_DEBUG=1', capturing all kernel
message over a serial console. Also, take an image of the flash before
you remount it. Let me have both.

-- 
dwmw2




More information about the linux-mtd mailing list