Linux NFS development
 help / color / mirror / Atom feed
From: DENIEL Philippe <philippe.deniel@cea.fr>
To: NFS list <linux-nfs@vger.kernel.org>
Subject: Client says "Stale NFS file handle" but server does not return NFS3ERR_STALE
Date: Tue, 27 Mar 2012 17:54:03 +0200	[thread overview]
Message-ID: <4F71E29B.70106@cea.fr> (raw)

Hi,

I have the following issue:
Client does a classical "mount -o vers=3,lock server:/path /mnt". The 
server is my nfs-ganesha user space server.
Then, a long time running "dd if=/dev/zero of=./foo..." is made inside a 
directory in the mount point. No matter what the other parameters of dd 
(like bs= or count=) are : I kill the daemon, and restart it a couple of 
seconds later. Then I kill the dd (CTRL-C from the console). The dd 
command returns an error (which is logical, it' sis IO error or Bad File 
Descriptor), but I see something else that is quite strange:
    - if I ls from the current directory (where I ran 'dd'), I got the 
message "ls: cannot open directory .: Stale NFS file handle"
    - In wireshark, I see no NFS3ERR_STALE
The wireshark capture shows that the "server shutdown" was made between 
a WRITE reply and the related COMMIT call (I received the COMMIT call as 
the server rebooted).
Apparently, the client decided to return "Stale NFS  file handle" to the 
client, the server returns no error, all replies are NFS3_OK.
What  should I be looking for to fix this bug ? (which is probably on my 
side)

    Regards
   
       Philippe



             reply	other threads:[~2012-03-27 15:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-27 15:54 DENIEL Philippe [this message]
2012-03-27 16:28 ` Client says "Stale NFS file handle" but server does not return NFS3ERR_STALE DENIEL Philippe
2012-03-27 16:45   ` Myklebust, Trond

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=4F71E29B.70106@cea.fr \
    --to=philippe.deniel@cea.fr \
    --cc=linux-nfs@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