this may yaffs_find_or_create_by_number find the obj but obj type is not YAFFS_OBJECT_TYPE_DIRECTORY because of the ecc error so you can delete the chunck . /* If we don't have valid info then we * need to read the chunk * TODO In future we can probably defer * reading the chunk and living with * invalid data until needed. */ result = yaffs_rd_chunk_tags_nand(dev, chunk, chunk_data, NULL); + if (result == YAFFS_FAIL){ + yaffs_trace(YAFFS_TRACE_ERROR, + "Chunk %d read ecc error [%s]", + apply_chunk_offset(dev, chunk_data),dev->param.name); + yaffs_chunk_del(dev, chunk, 1, __LINE__); + return alloc_failed ? YAFFS_FAIL : YAFFS_OK; + } -----邮件原件----- 发件人: yaffs [mailto:yaffs-bounces@lists.aleph1.co.uk] 代表 yaffs-request@lists.aleph1.co.uk 发送时间: 2014年1月13日 20:00 收件人: yaffs@lists.aleph1.co.uk 主题: yaffs Digest, Vol 104, Issue 2 Send yaffs mailing list submissions to yaffs@lists.aleph1.co.uk To subscribe or unsubscribe via the World Wide Web, visit http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs or, via email, send a message with subject or body 'help' to yaffs-request@lists.aleph1.co.uk You can reach the person managing the list at yaffs-owner@lists.aleph1.co.uk When replying, please edit your Subject line so it is more specific than "Re: Contents of yaffs digest..." Today's Topics: 1. yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found. please, send e-mail to me. (wikimfw@lotte.net) ---------------------------------------------------------------------- Message: 1 Date: Mon, 13 Jan 2014 18:50:27 +0900 From: "wikimfw@lotte.net" To: Charles Manning Cc: "yaffs@lists.aleph1.co.uk" Subject: [Yaffs] yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found. please, send e-mail to me. Message-ID: <0901BC52A16DB841B7D87A2A51FC02552147480B2C@VS-EXCHMBX02.lotte.net> Content-Type: text/plain; charset="euc-kr" Deir sir. Using yaffs2 file system in embedded board. We found an error Message in yaffs2 filesystem like this. Error Messag : yaffs tragedy: attempting to use non-directory as a directory in scan. Put in lost+found. Why does the problem occured in yaffs2 file system? What does the occur? Can you answer me?? as soon as .. wait for your answer. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Subject: Digest Footer _______________________________________________ yaffs mailing list yaffs@lists.aleph1.co.uk http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs ------------------------------ End of yaffs Digest, Vol 104, Issue 2 *************************************