[Yaffs-archive] Re: Pecularities in directory after remount

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Luc Van Oostenryck
Date:  
To: YAFFS list
Subject: [Yaffs-archive] Re: Pecularities in directory after remount
Christian Gan wrote:
> Hey all,
>
> I'm new to the list so don't mind me if I'm just repeating something that's
> been said already but... here goes:
>
> Equipment:
>
> Custom ARM720 core SBC running Linux (2.4.6), MTD is upgraded to newest
> version.
> Toshiba 16MB NAND flash w/ HW ECC (through custom FPGA design).
>
> Question 1:
>
> I managed to get the MTD and yaffs working after tweaking both to match our
> interface to the NAND (via the FPGA).
>
> Here's the breakdown:
> 1. Copy a file onto the yaffs directory.
> 2. Delete it.
> 3. Copy another file into the directory with the same name.
> 4. Reboot and remount the yaffs directory.
>
> What I sometimes find now is that the file is there but the size is 0.
> Anyone else see this?


I think I had the same problem.
Another problem, maybe related to this one is:
1. Copy a file onto the yaffs directory.
2. Delete it.
3. Copy another file into the directory with the same name.
4. Delete it.
=> kernel oops due to an inode having a null parent.
When I add a flush method in file_operation that just call yaffs_FlushFile(),
my problem doesn't appear anymore AND yours does not happen.


> Question 2:
>
> I also find that when I keep copying files into the directory until it is
> full, the last copy will be stuck in an infinite loop.
>
> Thanks,
>
> Christian Gan
>
>
> ---------------------------------------------------------------------------------------
> This mailing list is hosted by Toby Churchill open software (www.toby-churchill.org).
> If mailing list membership is no longer wanted you can remove yourself from the list by
> sending an email to with the text "unsubscribe"
> (without the quotes) as the subject.
>
>





---------------------------------------------------------------------------------------
This mailing list is hosted by Toby Churchill open software (www.toby-churchill.org).
If mailing list membership is no longer wanted you can remove yourself from the list by
sending an email to with the text "unsubscribe"
(without the quotes) as the subject.