mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Gianluca Alberici <gianluca@abinetworks.biz>
Cc: linux-kernel@vger.kernel.org
Subject: Re: NFS Bug in 2.6.23 ? SOLUTION ?
Date: Sun, 18 Nov 2007 14:42:21 -0500	[thread overview]
Message-ID: <1195414941.10559.10.camel@heimdal.trondhjem.org> (raw)
In-Reply-To: <474087F6.9030305@abinetworks.biz>


On Sun, 2007-11-18 at 19:44 +0100, Gianluca Alberici wrote:
> Trond,
> 
> The problem is in nfs_mountpoint_timeout. After this time 
> dentry_delete(/,4) removes the mountpoint, then it is very difficult to 
> automount (at least with CFSD), one has got to try 2 or three times 
> cd'ing into the mount point. Applications wont ever had the chance to 
> autoremount (ENOTDIR).

Sounds like CFSD has a bug w.r.t. what fsid it returns to the client.

> I have some questions:
> 
> - nfs_mountpoint_timeout seems to be set in sysctl.c even if nfsv4 is 
> not. Is this correct ? I've read somewhere that it was introduced for v4.

Wrong. It applies to all mountpoint crossing. If the server tells us
that the fsid has changed, then we create a new mountpoint.

> - Why this sysctl is not registered in my 2.6.20 kernel where it should 
> be registered ?

Prior to 2.6.21-rc5, we had a bug in register_nfs_fs() whereby it failed
to register the sysctl table unless you enabled NFSv4.

> - Why this parameter has not a 'disabled' value (i mean kind of -1) ?

Why should it? The current behaviour is quite correct. If you cross a
mountpoint, then you should remount in order to ensure that the inode
numbers remain unique per-filesystem.

We know that some ancient NFS servers had problems returning the correct
fsid in readdirplus replies, so 2.6.22 adds support to disable
readdirplus calls via a 'nordirplus' mount option. I guess you could try
that...

Trond


  reply	other threads:[~2007-11-18 19:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-16 10:05 NFS Bug in 2.6.23 ? Gianluca Alberici
2007-11-16 12:11 ` markus reichelt
2007-11-16 14:21   ` Trond Myklebust
2007-11-17 13:38     ` Gianluca Alberici
2007-11-17 17:27       ` Gianluca Alberici
2007-11-18 18:44         ` NFS Bug in 2.6.23 ? SOLUTION ? Gianluca Alberici
2007-11-18 19:42           ` Trond Myklebust [this message]
2007-11-19  7:41             ` Gianluca Alberici

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=1195414941.10559.10.camel@heimdal.trondhjem.org \
    --to=trond.myklebust@fys.uio.no \
    --cc=gianluca@abinetworks.biz \
    --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®