Well... it should work. An 'fsync' on the client tells the client
kernel NFS implementation to send any cached write requests to the
server, and when the server receives the write request, it is required
by the protocol to store it to "stable storage" before repling to the
request. So after an fsync (or close) on the client, all the data
should be safe on disc on the server.
However, the linux kernel nfsd has an option (which is unfortunately
the default) to allow it to return before the data is safe. This
makes NFS server faster (20%?) but less safe.
If you export with the "sync" export option, it should write data
safely do disc before returning.
Does this address your problem? or did I miss something.
>
> I wonder if it would be better to use CODA, or similar shared FS, as
> opposed to NFS in this situation.
I don't think CODA would be an answer. From my understanding, it
doesn't allow shared write access to a file (the file gets copied,
whole, to which ever client has it open).
NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/