Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43777 - access time is not updates after file has been opened
Summary: access time is not updates after file has been opened
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-05 00:52 UTC by Nikolei Steinhage
Modified: 2004-03-05 06:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolei Steinhage 2004-03-05 00:52:59 UTC
using stat (of coreutils or perl) gives the time, a file was last accessed. but the timestamp is not beeing updated when a file is opened only for reading.

Reproducible: Always
Steps to Reproduce:
1. stat foo
2. cat foo
3. stat foo

Actual Results:  
access time does not change although file was accessed in step 2. so no 
difference is shown by stat between step 1 and 3.

Expected Results:  
in step 3, stat should show a different access time compared to stat in step 1, 
because in step 2, the file was opend for reading.

gentoo system is up-to-date. 
bug occurs both on reiserfs and ext2. 
bug reproducable with stat of coreutils and stat of perl.
seems to be a bug in /lib/libc.so.6
Comment 1 Spider (RETIRED) gentoo-dev 2004-03-05 01:01:37 UTC
please put in the outpput of "mount"  (complete)  sounds very much like you have the "noatime"  mount flag enabled
Comment 2 SpanKY gentoo-dev 2004-03-05 06:34:31 UTC
re-open with the output of `mount` like spider asked please