linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* OFD ("file private") locks and NFS
@ 2014-04-29  8:38 Michael Kerrisk (man-pages)
  2014-04-29  8:47 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-04-29  8:38 UTC (permalink / raw)
  To: Jeff Layton
  Cc: mtk.manpages, Ganesha NFS List, lkml, Linux-Fsdevel,
	Trond Myklebust, J. Bruce Fields, Neil Brown, samba-technical,
	Michael Kerrisk (gmail)

Hi Jeff,

I've been looking a bit at the fcntl() documentation of traditional 
(F_SETLK) record locking, and a question just jumped out at me. Is 
it worth considering some future-proofing in the design of OFD locks
("open file description locks", formerly known as "file-private locks")?

What I am thinking of here is that on some systems, the traditional
'struct flock' has a nonstandard field, l_sysid, that is used on F_GETLK 
to identify the remote system on which a lock is held. Should the design
of OFD locks allow for such a field (now, or in the future), which might 
be useful in the context of locking on network file systems such as NFS.

Put more simply, should the new OFD locking system be using a new
structure for describing locks, rather than the traditional 'struct
flock'? Defining a new structure, might be useful to allow for
future extensions to the API.

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

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

end of thread, other threads:[~2014-04-29 15:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-29  8:38 OFD ("file private") locks and NFS Michael Kerrisk (man-pages)
2014-04-29  8:47 ` Michael Kerrisk (man-pages)
     [not found]   ` <535F670B.4060704-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-04-29 11:11     ` Jeff Layton
     [not found]       ` <20140429071153.176c7404-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2014-04-29 11:15         ` Michael Kerrisk (man-pages)
2014-04-29 11:40         ` Matt W. Benjamin
     [not found]           ` <1482413734.4.1398771608019.JavaMail.root-DQa+Qhn4Z593Hjf6844flrbbgpPoC6wPvwx5bNz670MAvxtiuMwx3w@public.gmane.org>
2014-04-29 11:50             ` Jeff Layton
     [not found]               ` <20140429075046.39fc9c3f-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2014-04-29 15:11                 ` Frank Filz

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).