public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* mtime updates for mmapped files.
@ 2008-01-16  9:46 Rogier Wolff
  2008-01-16 10:03 ` Dave Young
  2008-01-16 11:22 ` Anton Salikhmetov
  0 siblings, 2 replies; 6+ messages in thread
From: Rogier Wolff @ 2008-01-16  9:46 UTC (permalink / raw)
  To: linux-kernel


Hi,

I  wrote a small app yesterday that updates a file by mmapping the 
file (RW), changing the thing around, and then exiting. 

This did not trigger a change in the mtime of the file. Thus rsync
didn't pick up that the file had changed.

I understand that tracking every change to a RW mmapped file is
costly, and thus unfeasable, but shouldn't then the close cause a
mtime update?

The server where this happened is running 2.6.21, so my apologies if
this has already been corrected.

	Roger. 

-- 
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 **
**    Delftechpark 26 2628 XH  Delft, The Netherlands. KVK: 27239233    **
*-- BitWizard writes Linux device drivers for any device you may have! --*
Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement. 
Does it sit on the couch all day? Is it unemployed? Please be specific! 
Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-01-16 12:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-16  9:46 mtime updates for mmapped files Rogier Wolff
2008-01-16 10:03 ` Dave Young
2008-01-16 10:11   ` Miklos Szeredi
2008-01-16 10:13   ` Valdis.Kletnieks
2008-01-16 11:22 ` Anton Salikhmetov
2008-01-16 12:30   ` Rogier Wolff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox