From: Marek Michalkiewicz <marekm@amelek.gda.pl>
To: linux-kernel@vger.kernel.org
Cc: staubach@redhat.com
Subject: mmap / mtime updates
Date: Tue, 9 Jan 2007 23:09:40 +0100 [thread overview]
Message-ID: <20070109220940.GA16978@amelek.gda.pl> (raw)
Hello,
What is the current status of the bug where modifications to file
contents made via mmap fail to update mtime of the file?
This was discussed a few months ago in this thread:
http://lkml.org/lkml/2006/5/17/138
where patches have been posted, but it seems that no final solution
has been agreed on and applied to the kernel tree. Updating ctime
and mtime appears to be required by the standard:
http://www.opengroup.org/onlinepubs/009695399/functions/mmap.html
The st_ctime and st_mtime fields of a file that is mapped with
MAP_SHARED and PROT_WRITE shall be marked for update at some point
in the interval between a write reference to the mapped region and
the next call to msync() with MS_ASYNC or MS_SYNC for that portion
of the file by any process.
and failing to do it can lead to potential data loss as well, if
modified files are not backed up (I'm seeing the problem with Samba
tdb files not being backed up by rsnapshot, for example).
Thanks,
Marek
next reply other threads:[~2007-01-09 22:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-09 22:09 Marek Michalkiewicz [this message]
2007-01-11 22:46 ` Peter Staubach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070109220940.GA16978@amelek.gda.pl \
--to=marekm@amelek.gda.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=staubach@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome