Re: [Yaffs] loopback , power-off, and data is lost

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Henrik Grindal Bakken
Date:  
To: yaffs
Subject: Re: [Yaffs] loopback , power-off, and data is lost
Henrik Grindal Bakken <> writes:

> Matthieu CASTET <> writes:
>
>> After adding OS trace to yaffs2, I saw that sync does a call to
>> yaffs_sync_fs, but it is a nop.
>>
>> This mean sync syscall doesn't flush the yaffs2 cache and data it
>> lost on unclean umount.
>>
>> Calling yaffs_FlushEntireDeviceCache in yaffs_sync_fs seems to make
>> sync working. What do you think of that ?
>
> I suffer from the same problem. If a yaffs2 filesystem is merely
> remounted read-only, and never properly unmounted, I seem to lose
> data. This only (I think, at least primarily) happens on
> filesystems that are loopback mounted from files in the yaffs2
> filesystem. I'd love to see a fix for sync.


Has anyone been able to look at this problem and the proposed fix from
Matthieu?


--
Henrik Grindal Bakken <>
PGP ID: 8D436E52
Fingerprint: 131D 9590 F0CF 47EF 7963 02AF 9236 D25A 8D43 6E52