All of lore.kernel.org
 help / color / mirror / Atom feed
* "(deleted)" directories
@ 2018-11-02  5:26 Malahal Naineni
  2018-11-02 11:05 ` Benjamin Coddington
  0 siblings, 1 reply; 24+ messages in thread
From: Malahal Naineni @ 2018-11-02  5:26 UTC (permalink / raw)
  To: linux-nfs

Hi All, we are using NFS-Ganesha with Linux NFS clients. The client's
shell reports the following. Based on lsof, the directory is marked
deleted. "cd to ROOT and cd to the same home directory fixes the
issue. The client behaves as though the directory is deleted and
recreated! Our NFS-Ganesha server implementation uses multiple file
handles that point to the same object. NFS spec says this should be
fine, but Linux NFS seems to be broken in this regard. tcpdump does
indicate file handle change (note that all file handles are permanent,
meaning they are valid at the server any time) around this issue time.

"shell-init: error retrieving current directory: getcwd: cannot access
parent directories: No such file or directory"
sh        112544            malahal  cwd       DIR               0,67
     65536   45605209 /home/malahal (deleted)
(10.120.154.42:/nfs/malahal-export/)

Function nfs_prime_dcache() seems to invalidate the dcache entry if
nfs_same_file() returns false. nfs_same_file() does seem to return
false with the following change, if I read it correctly, if there is a
file handle change. Can this be the source of my issue? It seems that
the client should do this only if the file handle is NOT valid (e.g.
if it gets ESTALE), right?

The following commit seems to assume that the objects are different if
they have different file handles!
commit 7dc72d5f7a0ec97a53e126c46e2cbd2560757955
Author: Trond Myklebust <trond.myklebust@primarydata.com>
Date:   Thu Sep 22 13:38:52 2016 -0400

    NFS: Fix inode corruption in nfs_prime_dcache()

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2018-11-06 22:17 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-02  5:26 "(deleted)" directories Malahal Naineni
2018-11-02 11:05 ` Benjamin Coddington
2018-11-02 15:54   ` Malahal Naineni
2018-11-02 20:26     ` Trond Myklebust
2018-11-02 22:07       ` Matt Benjamin
2018-11-03  0:15         ` Trond Myklebust
2018-11-03  2:38           ` Marc Eshel
2018-11-03  3:27             ` Trond Myklebust
2018-11-03  3:37               ` Marc Eshel
2018-11-04  5:31             ` NeilBrown
2018-11-04 19:47               ` Marc Eshel
2018-11-05  0:32                 ` NeilBrown
2018-11-05  4:41                   ` Malahal Naineni
2018-11-05  5:09                     ` NeilBrown
2018-11-05  7:40                       ` Malahal Naineni
2018-11-05 13:45                         ` Trond Myklebust
2018-11-05 23:49                           ` NeilBrown
2018-11-06  0:37                             ` Trond Myklebust
2018-11-06  8:43                         ` Mkrtchyan, Tigran
2018-11-06 19:25                           ` Bill Baker
2018-11-06 22:17                             ` Rick Macklem
2018-11-05  4:48                   ` Marc Eshel
2018-11-03  5:00       ` Malahal Naineni
2018-11-03  5:40         ` Trond Myklebust

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.