From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: "Sven Köhler" <skoehler@upb.de>
Cc: linux-kernel@vger.kernel.org, nfs@lists.sourceforge.net
Subject: Re: why do i get "Stale NFS file handle" for hours?
Date: Sat, 04 Sep 2004 21:39:45 -0400 [thread overview]
Message-ID: <1094348385.13791.119.camel@lade.trondhjem.org> (raw)
In-Reply-To: <chdp06$e56$1@sea.gmane.org>
På lau , 04/09/2004 klokka 21:06, skreiv Sven Köhler:
> Hi,
>
> i think i know what's going an, and why i get the "stale nfs handle"
> error-message when the NFS server is restartet (real reboot, or a simply
> /etc/init.d/nfs restart) but what i don't understand is, why the NFS
> client doesn't "remount" the filesystem autmatically. In case of NFS
> over tcp, the NFS client could easily detect a restart of the NFS server
> (the tcp-connection was aborted) or are there other factors that keep
> the NFS client from recognizing such stuff?
Sigh. This question keeps coming up again and again and again. Why can't
you people search the archives?
Of course we could "fix" things for the user so that we just look up all
those filehandles again transparently.
The real question is: how do we know that is the right thing to do?
The NFS client wouldn't know the difference between your /etc/passwd
file and a javascript pop-up ad. If it gets an ESTALE error, then that
tells it that the original filehandle is invalid, but it does not know
WHY that is the case. The file may have been deleted and replaced by a
new one. It may be that your server is broken, and is actually losing
filehandles on reboot (as appears to be the case in your setup),...
Reopening the file, and then continuing to write from the same position
may be the right thing to do, but then again it may cause you to
overwrite a bunch of freshly written password entries.
So we bounce the error up to userland where these issues can actually be
resolved.
Cheers,
Trond
next prev parent reply other threads:[~2004-09-05 1:40 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-05 1:06 Sven Köhler
2004-09-05 1:39 ` Trond Myklebust [this message]
2004-09-05 1:51 ` Sven Köhler
2004-09-05 2:02 ` Trond Myklebust
2004-09-05 2:23 ` Sven Köhler
2004-09-05 3:01 ` Trond Myklebust
2004-09-05 8:17 ` Tim Connors
2004-09-05 8:59 ` Florian Weimer
2004-09-05 9:02 ` Tim Connors
2004-09-05 16:20 ` Mike Jagdis
2004-09-06 1:32 ` Tim Connors
2004-09-05 13:18 ` Sven Köhler
2004-09-05 20:10 ` Trond Myklebust
2004-09-06 7:47 ` Kalin KOZHUHAROV
2004-09-06 9:57 ` David Woodhouse
2004-09-06 15:59 ` Trond Myklebust
2004-09-07 0:55 ` [NFS] " Greg Banks
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=1094348385.13791.119.camel@lade.trondhjem.org \
--to=trond.myklebust@fys.uio.no \
--cc=linux-kernel@vger.kernel.org \
--cc=nfs@lists.sourceforge.net \
--cc=skoehler@upb.de \
/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®