All of lore.kernel.org
 help / color / mirror / Atom feed
* Should fcntl operations check attributes with the server when NFS shares are mounted noac?
@ 2006-02-23 12:42 Neil Horman
  2006-02-23 13:36 ` Peter Staubach
  2006-02-23 16:12 ` Trond Myklebust
  0 siblings, 2 replies; 14+ messages in thread
From: Neil Horman @ 2006-02-23 12:42 UTC (permalink / raw)
  To: nfs

Hey all-
	I've got a dillema and I'm not sure how to anwser it.  I recently had
someone mention to me that some of the operations executed via fcntl
(specifically F_SETLEASE was demonstrated to me) don't check the file attributes
on the server before executing their operations.  This can lead to erroneous
behavior in which, if someone updates file permissions or ownership from another
node mounting an NFS share, a node attempting to do something like a F_SETLEASE
operation will fail when it should succede, or vice versa.

	I can see who this could be interpreted as a bug, but I can also see how
we might not want to change the behavior, given that the fcntl code currently
does not call down to the underlying filesystem for most operations (as it
doesn't nominally need to), and the problem can easily be avoided by the use of
a file lock and a stat operation.  Is there consensus on this issue, as to how
it should operate, or how we would like it to operate?

Thanks & Regards
Neil

-- 
/***************************************************
 *Neil Horman
 *Software Engineer
 *Red Hat, Inc.
 *nhorman@redhat.com
 *gpg keyid: 1024D / 0x92A74FA1
 *http://pgp.mit.edu
 ***************************************************/


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

end of thread, other threads:[~2006-02-24 15:40 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-23 12:42 Should fcntl operations check attributes with the server when NFS shares are mounted noac? Neil Horman
2006-02-23 13:36 ` Peter Staubach
2006-02-23 15:17   ` Neil Horman
2006-02-23 16:12 ` Trond Myklebust
2006-02-23 19:22   ` Neil Horman
2006-02-23 19:39     ` Trond Myklebust
2006-02-23 19:50       ` Peter Staubach
2006-02-23 20:19         ` Trond Myklebust
2006-02-23 20:50           ` Peter Staubach
2006-02-23 22:31             ` Trond Myklebust
2006-02-24 14:06               ` Neil Horman
2006-02-24 14:26                 ` Trond Myklebust
2006-02-24 15:25                   ` Neil Horman
2006-02-24 15:39                     ` Trond Myklebust

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.