[Yaffs] how yaffs2 handle -EBADMSG error from MTD

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: WilliamYSFan@via.com.tw
Date:  
To: yaffs
CC: charles, HaraldWelte, DreamKu
Subject: [Yaffs] how yaffs2 handle -EBADMSG error from MTD
Hi all



I have questions about how yaffs2 handle -EBADMSG error form MTD



MTD layer finds ECC errors and those errors are not correctable, then

nand_read will return -EBADMSG to YAFFS



It seems YAFFS2 will call "yaffs_HandleChunkError" and maybe retire
this block at next operation.

But " yaffs_ReadDataFromFile " do not report error . so , I do not know
this file is bad .



is my analysis right ?

Does YAFFS return error to kernel when -EBADMSG is returned form MTD ?




please help me and thanks a lot