xfs
[Top] [All Lists]

Re: XFS and noatime

To: Christian <evilninja@xxxxxxx>, xfs@xxxxxxxxxxx
Subject: Re: XFS and noatime
From: Christian Kujau <evil@xxxxxxxxxx>
Date: Sun, 28 May 2006 04:45:47 +0100 (BST)
In-reply-to: <200605272339.12352.lists@xxxxxxxxxxxxxxxx>
References: <200605272339.12352.lists@xxxxxxxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
On Sat, 27 May 2006, Markus Schoder wrote:
Seems that XFS updates the atime for binary files that are executed even
if noatime is specified on mount.

hm, indeed:

$ stat /bin/ls
  File: `/bin/ls'
  Size: 80008           Blocks: 160        IO Block: 4096   regular file
Device: 805h/2053d      Inode: 29524420    Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2006-05-28 04:27:20.524953761 +0100
Modify: 2006-03-02 20:08:55.000000000 +0000
Change: 2006-03-24 19:20:03.575659048 +0000
$ ls -d .
.
$ stat /bin/ls
  File: `/bin/ls'
  Size: 80008           Blocks: 160        IO Block: 4096   regular file
Device: 805h/2053d      Inode: 29524420    Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2006-05-28 04:39:56.024473625 +0100
Modify: 2006-03-02 20:08:55.000000000 +0000
Change: 2006-03-24 19:20:03.575659048 +0000

And it does not happen only after executing files, as I'm writing this /etc/passwd's atime have changed (and no, nobody else is on the box ;))

$ stat /etc/passwd
  File: `/etc/passwd'
  Size: 2441            Blocks: 8          IO Block: 4096   regular file
Device: 805h/2053d      Inode: 8389875     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2006-05-28 04:43:18.553907666 +0100
Modify: 2006-05-27 01:39:39.319279976 +0100
Change: 2006-05-27 01:39:39.329284198 +0100



2.6.17-rc3, i386,
/dev/sda5 on / type xfs (rw,noatime)

Christian.
--
BOFH excuse #435:

Internet shut down due to maintenance


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