[Yaffs] 答复: yaffs Digest, Vol 104, Issue 2

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Chenjie (K)
Date:  
To: yaffs@lists.aleph1.co.uk
Subject: [Yaffs] 答复: yaffs Digest, Vol 104, Issue 2
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] 代表 
发送时间: 2014年1月13日 20:00
收件人: 
主题: yaffs Digest, Vol 104, Issue 2

Send yaffs mailing list submissions to
    

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
    

You can reach the person managing the list at
    

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.
      ()


----------------------------------------------------------------------

Message: 1
Date: Mon, 13 Jan 2014 18:50:27 +0900
From: "" <>
To: Charles Manning <>
Cc: "" <>
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:
    <>
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: <http://lists.aleph1.co.uk/lurker/list/yaffs.html/attachments/20140113/8c8d9a3f/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
yaffs mailing list

http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs


------------------------------

End of yaffs Digest, Vol 104, Issue 2
*************************************