Re: [Yaffs] Time stamp not updated upon sync

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: yaffs@piments.com
Date:  
CC: yaffs
Subject: Re: [Yaffs] Time stamp not updated upon sync

> I'm also not sure whether it's optional, but as fsync(2) points out,

``The
> aim of fdatasync() is to reduce disk activity for applications that

do not
> require all metadata to be synchronized with the disk.''.
>
> I have a fair number of applications which use memory-mapped files

and which
> frequently call msync() to ensure the data hits the flash. It would

be nice
> to reduce the amount of writes that actually hit the flash, and one

way of
> doing this is skipping mtime updates.
>
> If anybody *does* desire an mtime update, they can simply use the fsync()
> call.
>
> Bye for now,


It's a very good point about avoiding unnecessary writes but this
discussion originally refers to command line sync command rather than
these internals.

It seems that command should flush metadata as well which it appears not
to do currently.

regards.