>>>>> "Linus" == Linus Torvalds <Linus.Torvalds@cs.helsinki.fi> writes:
Linus> Hmm, interesting. I am not able to repeat it, but there may be server
Linus> differences. We have a linux NFS server here (with a rather recent and
Linus> patched NFS deamon: the "standard" linux NFS deamon has some problems).
Linus> What kind of setup is your server?
We see the same behaviour. We have an AXP-OSF1 system as NFS server, and
several systems as clients (ULTRIX-MIPS, SunOS, Solaris, Linux, etc.) The
following shell script helps a little bit.
rsh $RNODE sh -c "'ls -ld X'"
rsh $RNODE sh -c "'ls -la X'"
rsh $RNODE sh -c "'cd X;ls -la .'"
Note that this test is not completely valid. The 'sync' does not have to
occur immediate. But anyway, on other hosts you can sometimes see the
message "Stale NFS file handle", but on linux-1.3.72 it doesn't complain
(it gives "total 0" for an "ls -al" command).
I also noted that in fs/nfs/dir.c in the function nfs_refresh_inode() I see
/* Size changed from outside: invalidate caches on next read */
if (inode->i_size != fattr->size)
In other words, only if the size has changed the inode is made invalid. Why
not for other conditions, like mtime?
-- ============================================================ Kees Bakker phone : +31 33 4558584 Tasking BV fax : +31 33 4550033 Plotterweg 31 email@example.com Amersfoort, The Netherlands ============================================================ Etc., etc., etc.