atimes not updated over NFS

From: Andre Majorel
Date: Wed Dec 26 2007 - 18:14:24 EST


After upgrading an NFS server from kernel 2.6.12 to 2.6.23, the
atime of files is not updated any more when clients read them :

client$ ll -u --time-style +%Y-%m-%d_%H:%M:%S /nfsmnt/zz
-rw-r--r-- 1 xxx xxx 0 2007-12-21_14:58:11 /nfsmnt/zz
client$ md5sum /nfsmnt/zz
d41d8cd98f00b204e9800998ecf8427e /nfsmnt/zz
client$ date +%Y-%m-%d_%H:%M:%S
2007-12-21_15:00:28
client$ ll -u --time-style +%Y-%m-%d_%H:%M:%S /nfsmnt/zz
-rw-r--r-- 1 xxx xxx 0 2007-12-21_14:58:11 /nfsmnt/zz

Reading the file locally, i.e. on the NFS server, does update the
atime :

server$ ll -u --time-style +%Y-%m-%d_%H:%M:%S /nfsmnt/zz
-rw-r--r-- 1 xxx xxx 0 2007-12-21_14:58:11 /nfsmnt/zz
serveur$ md5sum /nfsmnt/zz
d41d8cd98f00b204e9800998ecf8427e /nfsmnt/zz
serveur$ date +%Y-%m-%d_%H:%M:%S
2007-12-21_15:04:00
serveur$ ll -u --time-style +%Y-%m-%d_%H:%M:%S /nfsmnt/zz
-rw-r--r-- 1 xxx xxx 0 2007-12-21_15:03:57 /nfsmnt/zz

/nfsmnt is mounted with options :
- server : rw,noexec,nosuid,nodev,nodiratime
- client : rw,user=root,nosuid,nodev,nodiratime,intr,rsize=8192,wsize=8192

Any ideas ?

--
André Majorel <URL:http://www.teaser.fr/~amajorel/>
Do not use this account for regular correspondence.
See the URL above for contact information.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/