linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] mtime&ctime updated when it should not
@ 2003-09-01 18:11 Jan Kara
  2003-09-01 18:35 ` Herbert Poetzl
  2003-09-01 19:18 ` Andrew Morton
  0 siblings, 2 replies; 9+ messages in thread
From: Jan Kara @ 2003-09-01 18:11 UTC (permalink / raw)
  To: linux-kernel; +Cc: viro

  Hello,

  one user pointed my attention to the fact that when the write fails
(for example when the user quota is exceeded) the modification time is
still updated (the problem appears both in 2.4 and 2.6). According to
SUSv3 that should not happen because the specification says that mtime
and ctime should be marked for update upon a successful completition
of a write (not that it would forbid updating the times in other cases
but I find it at least a bit nonintuitive).
  The easiest fix would be probably to "backup" the times at the
beginning of the write and restore the original values when the write
fails (simply not updating the times would require more surgery because
for example vmtruncate() is called when the write fails and it also
updates the times).
  So should I write the patch or is the current behaviour considered
correct?

								Honza

-- 
Jan Kara <jack@suse.cz>
SuSE CR Labs

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

end of thread, other threads:[~2003-09-08 13:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-01 18:11 [BUG] mtime&ctime updated when it should not Jan Kara
2003-09-01 18:35 ` Herbert Poetzl
2003-09-01 19:05   ` Jan Kara
2003-09-01 22:48   ` Mike Fedyk
2003-09-01 19:18 ` Andrew Morton
2003-09-01 19:31   ` Jan Kara
2003-09-01 19:58     ` Andrew Morton
2003-09-02 13:06       ` Jan Kara
2003-09-06  8:05         ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).