no doubt this is old hat, but this is the first its bitten me. i have a process that rewrites a file periodically. other programs periodically check that file to see if its changed, and if so, reread the file. the actual method is (within a C program, with liberties)
fopen("file!", "w") write stuff fclose() system("mv file! file") this works nearly all the time, except now (just as we go into production), i am getting alot of "Stale NFS file handle" errors when the other processes attempt to reread the file. using google, one finds this commonly occurs when the file is, amongst other things, renamed (which is what the mv does). all this is running on wretched linux (RHEL6), so i am about to abandon all hope. but maybe someone can offer another way to publish a file. maybe there is some NFS-specific dance that is supposed to work. andrew ------------------ Andrew Hume (best -> Telework) +1 623-551-2845 and...@research.att.com (Work) +1 973-236-2014 AT&T Labs - Research; member of USENIX and LOPSA
_______________________________________________ Tech mailing list Tech@lists.lopsa.org https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech This list provided by the League of Professional System Administrators http://lopsa.org/