NFS cache-cleaning command?

前端 未结 5 1738
刺人心
刺人心 2021-01-31 09:55

I have a trouble with NFS client-side attribute caching. I\'m using some servers, one is an NFS server and the others are NFS client servers.

All servers are Debian(lenn

5条回答
  •  清歌不尽
    2021-01-31 10:26

    Within a given process, calling opendir and closedir on the parent directory of a file invalidates the NFS cache. I used this while programming a job scheduler. Very, very helpful. Try it!

    This is the line number of the relevant code (showing the use in context): https://github.com/earonesty/grun/blob/master/grun#L820

    It was the only way I could fix the issue of job #1 completing and job #2, which needed some output files, firing off in a context where those files were visible,

提交回复
热议问题