stat family function problem (php file_exists)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ?

client1:/mnt/storage0/test# cat a.php
<?php

if (file_exists ($argv[1])) {
    echo "1\n";
} else {
    echo "0\n";
}


client2:/mnt/storage0/test# php a.php test1
0
client1:/mnt/storage0/test# touch test1

client2:/mnt/storage0/test# php a.php test1
0
client2:/mnt/storage0/test# php a.php test1
0
..........
client2:/mnt/storage0/test# php a.php test1
1


mtab:

xxx:/mnt/drbd0/ /mnt/storage0 nfs rw,hard,timeo=7,intr,addr=xxx 0 0

export

/mnt/drbd0        10.0.0.0/8(rw,async,no_subtree_check,no_root_squash,fsid=100)
--
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


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux