From: Peter Staubach <staubach@redhat.com>
To: Neil Horman <nhorman@redhat.com>
Cc: nfs@lists.sourceforge.net
Subject: Re: Should fcntl operations check attributes with the server when NFS shares are mounted noac?
Date: Thu, 23 Feb 2006 08:36:09 -0500 [thread overview]
Message-ID: <43FDBA49.1000802@redhat.com> (raw)
In-Reply-To: <20060223124255.GA29177@hmsendeavour.rdu.redhat.com>
Neil Horman wrote:
>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?
>
It seems to me that all operations, which use attributes, in any fashion,
whether to make decisions or to return them to the user level, should
verify that the attributes are up to date before using them. This
verification
may mean talking to the server or simply deciding that the attributes are
up to date because they are still within the attribute cache timeout period.
The "noac" option should mean, perhaps among other things, that the
attribute
cache timeout period is zero in length.
If the fcntl code doesn't call into the file system to do the actual
operations, then it needs to verify that the attributes that it is using
are up to date. If it doesn't, then it is broken and needs to be modified
to do so.
Thanx...
ps
-------------------------------------------------------
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
next prev parent reply other threads:[~2006-02-23 13:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43FDBA49.1000802@redhat.com \
--to=staubach@redhat.com \
--cc=nfs@lists.sourceforge.net \
--cc=nhorman@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.