From: "J. Bruce Fields" <bfields@fieldses.org>
To: Ferenc Wagner <wferi@niif.hu>
Cc: linux-nfs@vger.kernel.org
Subject: Re: Seemingly inconsistent directory state under NFSv4
Date: Wed, 23 Feb 2011 14:39:29 -0500 [thread overview]
Message-ID: <20110223193929.GA13399@fieldses.org> (raw)
In-Reply-To: <87d3mkhvgb.fsf@tac.ki.iif.hu>
On Tue, Feb 22, 2011 at 05:42:44PM +0100, Ferenc Wagner wrote:
> Ferenc Wagner <wferi@niif.hu> writes:
>
> > In our somewhat mixed NFSv4 setup (Linux 2.6.32 Debian squeeze server, a
> > 2.6.26 and a 2.6.32 Debian lenny client) we sometimes experience the
> > following: removing a file on the 2.6.26 client makes that file
> > disappear from the directory listing of the 2.6.32 client, but the file
> > itself remains accessible by its old -- now nonexistent -- name there.
> > Is such a confusing state expected, or is this the manifestation of some
> > bug?
>
> Is this perhaps a manifestation of the following paragraph of
> nfs41-server.txt in the Linux kernel documentation?
>
> Incomplete delegation enforcement: if a file is renamed or
> unlinked, a client holding a delegation may continue to
> indefinitely allow opens of the file under the old name.
>
> If yes, is there a way to list the active delegations (on the server and
> on the client) and possibly trigger releasing/recalling them?
The linux client will return any delegation before it does a rename or
unlink, so if you're just doing everything from one client, I don't
*think* the problem is with delegations--you should hit this delegation
problem only in the case where you are removing the file on one client
while using it on another, or removing on the server while using it on
the client.
(In the case of client-client conflicts, this is fixed in 2.6.38.)
You can turn off delegations completely with
echo 0 >/proc/sys/fs/leases-enable
before starting the nfs server.
--b.
next prev parent reply other threads:[~2011-02-23 19:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-11 12:27 Seemingly inconsistent directory state under NFSv4 Ferenc Wagner
2011-02-22 16:42 ` Ferenc Wagner
2011-02-23 19:39 ` J. Bruce Fields [this message]
2011-02-24 16:48 ` Ferenc Wagner
2011-02-24 17:27 ` J. Bruce Fields
2011-02-25 16:43 ` Ferenc Wagner
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=20110223193929.GA13399@fieldses.org \
--to=bfields@fieldses.org \
--cc=linux-nfs@vger.kernel.org \
--cc=wferi@niif.hu \
/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 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).