linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Correctly understanding Linux's close-to-open consistency
@ 2018-09-13  1:24 Chris Siebenmann
  2018-09-15 16:20 ` Jeff Layton
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Siebenmann @ 2018-09-13  1:24 UTC (permalink / raw)
  To: linux-nfs; +Cc: cks

 I'm trying to get my head around the officially proper way of
writing to NFS files (not just what works today, and what I think
is supposed to work, since I was misunderstanding things about that
recently).

 Is it correct to say that when writing data to NFS files, the only
sequence of operations that Linux NFS clients officially support is
the following:

- all processes on all client machines close() the file
- one machine (a client or the fileserver) opens() the file, writes
  to it, and close()s again
- processes on client machines can now open() the file again for
  reading

Other sequences of operations may work in some particular kernel version
or under some circumstances, but are not guaranteed to work over kernel
version changes or in general.

In an official 'we guarantee that if you do this, things will work' sense,
how does taking NFS locks interact with this required sequence? Do NFS
locks make some part of it unnecessary, or does it remain necessary and
NFS locks are just there to let you coordinate who has a magic 'you can
write' token and you still officially need to close and open and so on?

Thanks in advance.

	- cks

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-09-17  7:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-13  1:24 Correctly understanding Linux's close-to-open consistency Chris Siebenmann
2018-09-15 16:20 ` Jeff Layton
2018-09-15 19:11   ` Chris Siebenmann
2018-09-16 11:01     ` Jeff Layton
2018-09-16 16:12       ` Trond Myklebust
2018-09-17  0:18         ` Chris Siebenmann
2018-09-17  2:19           ` Trond Myklebust

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).