JFFS2 losing dirs/files on NAND flash

Marco Braga marco.braga at gmail.com
Mon Oct 27 11:46:48 EDT 2008


Hi,

and did the problem disappear when using the new kernel? How did you
solve the problem?
Thank you!

Marco


2008/10/27 Suresh R <suresh at mistralsolutions.com>:
> Hi,
>
> Even I have faced a similar issue with the JFFS2 on onenand on
> 2.6.16-rc3. I too was not able to reproduce the issue by shutting down
> abruptly, but it happens on our products on the field.
>
> I looks to me that it happens when switched off during a GC. I am not
> sure. I was not able to prove to myself this theory. Where ever I
> reported this issue, I was told to use a new kernel.
>
> Suresh
>
> On Mon, Oct 27, 2008 at 1:42 PM, Marco Braga <marco.braga at gmail.com> wrote:
>> Hello,
>>
>> I am using JFFS2 on an ARM base board with a 128Mb NAND flash, kernel
>> 2.6.22.10. Sometimes the board does not boot because a directory in
>> /etc has disappeared after a JFFS2 error or a file is missing data.
>> I'm trying to understand at what level (hardware, kernel, MTD, file
>> system) it happens. The error appears when trying to access the
>> directory or file:
>>
>> JFFS2 warning: (96) jffs2_do_read_inode_internal: no data nodes found
>> for ino #65
>> JFFS2 notice: (96) jffs2_do_read_inode_internal: but it has children
>> so we fake some modes for it
>> JFFS2 warning: (96) jffs2_do_read_inode_internal: no data nodes found
>> for ino #97
>> JFFS2 notice: (96) jffs2_do_read_inode_internal: but it has children
>> so we fake some modes for it
>> ...
>>
>> I've not been able to relate it to an unclean shutdown. I've tried
>> powering off the board several times without being able to make the
>> problem happen. Moreover I've tried a multithreaded program that
>> opens, writes, reads and deletes several files to stress the FS and it
>> never happened after an overnight run.
>>
>> Can you please help understanding the cause or the meaning of those log lines?
>> Thank you!
>>
>> ______________________________________________________
>> Linux MTD discussion mailing list
>> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>>
>



More information about the linux-mtd mailing list