You should be able to mount the card syncronous. I've not done that, but
it should work. Try passing -o,sync to mount (have a look at 'man mount'
for more info). This is untested (by me at least). However, it is highly
likely to work perfectly.
On Wed, 20 Dec 2000, Frank Haverkamp wrote:
> I am playing with a memory card with the vfat-filesystem on top of it.
> It seems to work
> fine, but how can I ensure that the data is written immediately? I wrote
> a testprogram
> wich does a flush(fp) before closing the fp. That works fine. But if I
> do a touch blabla
> to create an empty file in the mounted directory, the data is written
> when I umount
> the memory card. That is not what I want, cause the data will be lost if
> the system
> fails between umount and writing the empty file. And worse if it flushed
> only half of
> the data the cards data may get corrupted.
> Has anyone a good (and simple) idea?
> This message resent by the email@example.com list server http://www.uClinux.com/
This message resent by the firstname.lastname@example.org list server http://www.uClinux.com/
This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:39 EST