Re: [Yaffs] Direct Interface, files contain zero when mounti…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: yaffs
Subject: Re: [Yaffs] Direct Interface, files contain zero when mounting without checkpoint
On Friday 01 June 2012 00:59:50 Stéphane Lesage wrote:
> Hi,
> I used yaffs2 direct interface 2 years ago without problems (archive of
> 2010/06/11).
> I updated to latest git version (linux style renaming and minor
> modifications).
> But I meet a very strange issue:
> When I don't yaffs_sync() after updating a file, then after rebooting,
> the partition is mounted without checkpoint.
> In this case, the file system structure is perfectly OK (names, sizes),
> but reading the files gives null data.
>
> I simulated on a PC with a file, and the result is the same.
> What happens ?
>
> Here a simple test, the "/boot" partition uses blocks 0 to 63 with
> packed tags 2 + ECC in the spare area.
> Run it 2 times with normal mounting for append test.
> Run it with read-only mounting for read test -> OK.
> Run it with read-only, no checkpoint read -> null data.
>


Hi Stephane

I tried to reproduce this but could not.

I wrote a test which should do what you are reporting. Can you please have a
look at:
http://yaffs.net/gitweb?p=yaffs2.git;a=shortlog;h=refs/heads/stephanetest

and see if that represents your test.

Thanks

Charles