jffs2 filesystem/flash data integrity

Manoj manoj23 at gmail.com
Mon Apr 20 14:27:00 EDT 2009


Hi David,

How do you want me to give the image that's on the flash? It is in megabytes.
Or do you want me to give the output of jffs2dump for the image?

Thanks.

On Sun, Apr 19, 2009 at 12:33 AM, David Woodhouse <dwmw2 at infradead.org> wrote:
> 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