xfs-masters
[Top] [All Lists]

[Bug 857] New: access times dissapear

To: xfs-masters@xxxxxxxxxxx
Subject: [Bug 857] New: access times dissapear
From: bugzilla-daemon@xxxxxxxxxxx
Date: Sun, 15 Nov 2009 20:23:20 -0600
Auto-submitted: auto-generated
http://oss.sgi.com/bugzilla/show_bug.cgi?id=857

           Summary: access times dissapear
           Product: XFS
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: XFS kernel code
        AssignedTo: xfs-masters@xxxxxxxxxxx
        ReportedBy: kermit4@xxxxxxxxx
   Estimated Hours: 0.0
    Classification: Unclassified


I'm not using relatime or noatime, yet access times dissapear:

Make a new file, unmount, mount, access file, see it's access time has updated,
unmount, mount, look at the access time again, it's what it was before.

Here's a script to reproduce it:

#!/bin/sh
if ! [ -e foo -o -e bar ];then
set -x
dd of=foo seek=100000  < /dev/null
mkdir bar
mkfs.xfs foo
mount foo bar -o loop
echo > bar/a
umount bar
mount foo bar -o loop
ls -lu --fu bar/
sleep 2
cat bar/a
ls -lu --fu bar/
umount bar
mount foo bar -o loop
ls -lu --fu bar/
umount bar
rmdir bar
rm foo
fi


which outputs:



# xfs_atime_bug.sh 
+ dd of=foo seek=100000
0+0 records in
0+0 records out
0 bytes (0 B) copied, 3.3733e-05 s, 0.0 kB/s
+ mkdir bar
+ mkfs.xfs foo
meta-data=foo                    isize=256    agcount=2, agsize=6250 blks
         =                       sectsz=512   attr=2
data     =                       bsize=4096   blocks=12500, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=1200, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=0
realtime =none                   extsz=4096   blocks=0, rtextents=0
+ mount foo bar -o loop
+ echo
+ umount bar
+ mount foo bar -o loop
+ ls -lu --fu bar/
total 4
-rw-r--r-- 1 root root 1 2009-11-15 20:18:09.807331227 -0600 a
+ sleep 2
+ cat bar/a

+ ls -lu --fu bar/
total 4
-rw-r--r-- 1 root root 1 2009-11-15 20:18:11.839566391 -0600 a
+ umount bar
+ mount foo bar -o loop
+ ls -lu --fu bar/
total 4
-rw-r--r-- 1 root root 1 2009-11-15 20:18:09.807331227 -0600 a
+ umount bar
+ rmdir bar
+ rm foo

The atime reset.  The new atime will also dissapear if it falls out of cache,
as it's never hit the disk, it literally forgets mid-mount.

uname -a:
Linux e6400 2.6.28-16-generic #55-Ubuntu SMP Tue Oct 20 19:48:24 UTC 2009 i686
GNU/Linux

-- 
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

<Prev in Thread] Current Thread [Next in Thread>