On the other hand, updating the mtime and ctime whenever a page is dirtied
also does not work right. Apparently that can break mutt.
Calling msync() every once in a while with Anton's patch does not look like a
fool proof method to me either, because the VM can write all the dirty pages
to disk by itself, leaving nothing for msync() to detect. (I think...)
Can we get by with simply updating the ctime and mtime every time msync()
is called, regardless of whether or not the mmaped pages were still dirty
by the time we called msync() ?
--
All Rights Reversed
--