prog: (The Rev. Sir Dr. George King)
prog ([personal profile] prog) wrote2007-05-22 10:06 am
Entry tags:

Lazyweb: Educate me on NFS

Google and Wikipedia aren't coming through for me on this one:

Imagine that we have a utility which, in the course of its duties, reads and writes files to a file system.

What sorts of behaviors would make it not NFS-safe? I thought NFS was totally transparent to man and beast alike, but perhaps this is not quite so?

[identity profile] novalis.livejournal.com 2007-05-22 02:29 pm (UTC)(link)
I don't know much about NFS, but I recall something about file locking being a bit weird on NFS. This will depend on (a) your version of NFS, (b) the particular technique you use (fcntl, flock, O_EXCL/hard links), and (c) the particular version of the particular kernel you are using.

[identity profile] ubiquity.livejournal.com 2007-05-22 03:10 pm (UTC)(link)
The only case I know of is if something else is attempting to write to that same file at the same time.