Bug 44580 - [nfs] NFS updates file access time when file is modified.
Summary: [nfs] NFS updates file access time when file is modified.
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-29 00:00 UTC by Mikel Lechner
Modified: 2017-07-11 14:00 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikel Lechner 2002-10-29 00:00:06 UTC
Appending data to a file on an NFS mounted volume incorrectly causes
the atime (access time) to be updated when only the mtime
(modify time) should be updated.  Appending to an empty file
works correctly, but thereafter modifies the atime on each append.

How-To-Repeat: mikel@borg.svpal.org[82]@ touch foo
mikel@borg.svpal.org[83]@ ls -lT foo
-rw-r--r--  1 mikel  mail  0 Oct 28 15:52:33 2002 foo
mikel@borg.svpal.org[84]@ ls -lTu foo
-rw-r--r--  1 mikel  mail  0 Oct 28 15:52:33 2002 foo
mikel@borg.svpal.org[85]@ echo "a" >> foo
mikel@borg.svpal.org[86]@ ls -lT foo
-rw-r--r--  1 mikel  mail  2 Oct 28 15:52:59 2002 foo
mikel@borg.svpal.org[87]@ ls -lTu foo
-rw-r--r--  1 mikel  mail  2 Oct 28 15:52:33 2002 foo (correct)
mikel@borg.svpal.org[88]@ echo "a" >> foo
mikel@borg.svpal.org[89]@ ls -lT foo
-rw-r--r--  1 mikel  mail  4 Oct 28 15:53:19 2002 foo
mikel@borg.svpal.org[90]@ ls -lTu foo
-rw-r--r--  1 mikel  mail  4 Oct 28 15:53:19 2002 foo (wrong!)
Comment 1 cel freebsd_committer freebsd_triage 2006-05-24 20:03:19 UTC
Responsible Changed
From-To: freebsd-bugs->cel

Only the server should update a file's access time.  Will look into it.
Comment 2 cel freebsd_committer freebsd_triage 2007-03-12 15:21:26 UTC
Responsible Changed
From-To: cel->freebsd-bugs

Back to the public pool.