This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Re: JFFS2 (Again!!)
- From: Andrew Lunn <andrew at lunn dot ch>
- To: knud dot woehler at microplex dot de
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 25 Feb 2005 10:46:55 +0100
- Subject: Re: [ECOS] Re: JFFS2 (Again!!)
- References: <421EE722.4070808@microplex.de>
On Fri, Feb 25, 2005 at 09:51:46AM +0100, knud.woehler@microplex.de wrote:
> Hi
>
> we had the same problem. It appeared if we open an existing file for
> writing (truncate) and close it without writing data to the file. In
> this case the filesystem is currupted. We handled the problem while we
> erase the file before open it for writing.
>
> unlink(filename);
> fopen(filename, "w");
Could you produce a test case which demonstrates this problem? We can
then attempt to find the bug and solve it.
Thanks
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss