On Thu, 2011-02-24 at 14:56 +0100, larith wrote: > Hi > > I have one nfs server mounted on 2 clients. If I check on client2 if a file exists, then after creating this file on client2 is is not immediately visible to file_exist() function on client2. it was only after some time. how to fix this ? 1) Use open() instead of stat() or 2) Use the -olookupcache= mount option (see 'man 5 nfs'). Trond > client1:/mnt/storage0/test# cat a.php > <?php > > if (file_exists ($argv[1])) { > echo "1\n"; > } else { > echo "0\n"; > } -- Trond Myklebust Linux NFS client maintainer NetApp Trond.Myklebust@xxxxxxxxxx www.netapp.com -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html