From: Andries Brouwer <aebr@win.tue.nl>
To: Ulrich Drepper <drepper@redhat.com>
Cc: Andries Brouwer <aebr@win.tue.nl>,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: NFS regression in 2.6
Date: Wed, 20 Aug 2003 04:26:10 +0200 [thread overview]
Message-ID: <20030820042610.A2596@pclin040.win.tue.nl> (raw)
In-Reply-To: <3F427766.5020105@redhat.com>; from drepper@redhat.com on Tue, Aug 19, 2003 at 12:15:50PM -0700
On Tue, Aug 19, 2003 at 12:15:50PM -0700, Ulrich Drepper wrote:
> > I just tried NFS client 2.6.0-test3, NFS server 2.0.34, try test on client.
> > No problems. ftruncate did not fail.
> >
> > (Do you require some NFS version?)
>
> I have no special settings. It's an out-of-the-box RHL9 server setting,
> using NFSv3.
>
> Does the 2.0 kernel have NFSv3? That might be why you don't see it.
No it doesnt.
So, instead of testing let us just read the source.
I do not completely understand all details yet, but the
interesting parts seem to live in nfs/dir.c.
Since NFS v2/v3 is stateless, doing things with open fds will fail.
This deviation from Unix semantics is repaired by replacing an unlink
by a "silly rename".
Your testprogram works under 2.4 and fails under 2.6.
The conclusion is no doubt that 2.4 does the silly rename
and 2.6 does not.
Why not?
2.4 says
error = nfs_sillyrename(dir, dentry);
2.6 says
if (atomic_read(&dentry->d_count) > 1)
error = nfs_sillyrename(dir, dentry);
Your testprogram does a dup(), but that will not increment d_count,
so that is still 1 and 2.6 doesnt do the sillyrename.
[I must read further but have no time. Probably Trond will tell us
all details.]
Andries
next prev parent reply other threads:[~2003-08-20 2:26 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-19 18:13 Ulrich Drepper
2003-08-19 18:49 ` Ulrich Drepper
2003-08-19 19:19 ` Tupshin Harper
2003-08-19 19:06 ` Andries Brouwer
2003-08-19 19:15 ` Ulrich Drepper
2003-08-20 2:26 ` Andries Brouwer [this message]
2003-08-20 5:37 ` Trond Myklebust
2003-08-20 17:24 ` Andries Brouwer
2003-08-20 18:43 ` Trond Myklebust
2003-08-20 19:02 ` Ulrich Drepper
2003-08-20 19:52 ` Andries Brouwer
2003-08-20 20:02 ` Trond Myklebust
2003-08-21 0:28 ` NFS regression in 2.6 -- gnome problem Tupshin Harper
2003-08-21 0:38 ` Andries Brouwer
2003-08-21 1:07 ` Tupshin Harper
2003-08-21 3:05 ` NFS regression in 2.6 Ulrich Drepper
2003-08-20 17:43 ` Ulrich Drepper
2003-08-20 18:06 ` Andries Brouwer
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=20030820042610.A2596@pclin040.win.tue.nl \
--to=aebr@win.tue.nl \
--cc=drepper@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®