Author: zheng shi Date: To: YAFFS Subject: Re: [Yaffs] how to recover from power failure
On 2008-12-08 09:07, Ken Yu wrote: > Hi, all:
>
> When a program writes something on nand and then power failure happens, how
> does yaffs to recover it?
>
> I mount the partition again, it pops messages like this:
> **>> yaffs: BlockBits block 41965 is not valid
> ==>> yaffs bug: fs/yaffs2/yaffs_guts.c 343
> **>> yaffs: Chunk Id (41965:109) invalid
> ==>> yaffs bug: fs/yaffs2/yaffs_guts.c 355
It seems both block and chunk are out of range.
How many blocks are there in your partition?
And what's your dev->nChunksPerBlock?
You'd better turn on YAFFS_TRACE_SCAN and YAFFS_TRACE_SCAN_DEBUG to
genertate more logs while mount.
i.e. echo +scan +scan_debug > /proc/yaffs
>
> What can I do for this?
> do some commands or call any functions?
>
> Thanks.
>