From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Hans-Peter Jansen <hpj@urpla.net>
Cc: trond.myklebust@fys.uio.no, linux-kernel@vger.kernel.org
Subject: [NFS] some strangeness (at least) with linux-2.4.17-NFS_ALL patch
Date: Fri, 11 Jan 2002 16:07:31 +0100 [thread overview]
Message-ID: <15422.65459.871735.203004@charged.uio.no> (raw)
In-Reply-To: <20020111131528.44F8613E6@shrek.lisa.de>
In-Reply-To: <20020111131528.44F8613E6@shrek.lisa.de>
>>>>> " " == Hans-Peter Jansen <hpj@urpla.net> writes:
> The problem is, ls on the client side complains about an I/O
> error, when listing the conf/ dir.
What server is this?
> After removing this symlink (within the server), ls is OK
> within the client. Trying to copy servers /etc/ou.conf file to
> /usr/share/openuniverse within the client, cp complains about
> to many levels of symlinks?!? (/usr is shared)
That can happen, yes. The symlink is still in the dcache, and so the
VFS thinks that we want to open whatever it is that the symlink is
pointing to (not the symlink itself). For this reason, less strict
checking is performed, and so the client does not immediately see the
change.
If, however, you had first done 'ls -l' or something that tries to
read the symlink itself, more strict revalidation checks are
performed, and the stale dentry would have been detected.
I can tighten the checks on this sort of thing a bit, but if so, it
needs to be done carefully. It is important to make sure that
operations like
'ls /usr/lib/*'
(in which you want the system to repeatedly look up the same path) are
efficient by caching the '/usr/lib' bit even if that /usr/lib is a
symlink.
Of course every time we do open("/usr/lib/libc.so"), we *do* want to
make sure that we perform strict checks when we do the lookup of the
last element of the path (on the actual file "libc.so").
Cheers,
Trond
next prev parent reply other threads:[~2002-01-11 15:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-11 13:15 Hans-Peter Jansen
2002-01-11 15:07 ` Trond Myklebust [this message]
2002-01-11 19:17 ` Hans-Peter Jansen
2002-01-12 2:24 ` Trond Myklebust
2002-01-12 17:01 ` [NFS] some strangeness (at least) with linux-2.4.18-NFS_ALL patch Hans-Peter Jansen
2002-01-12 18:47 ` Trond Myklebust
2002-01-12 22:40 ` Hans-Peter Jansen
2002-01-13 12:37 ` Trond Myklebust
2002-01-12 2:04 ` [NFS] some strangeness (at least) with linux-2.4.17-NFS_ALL patch Trond Myklebust
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=15422.65459.871735.203004@charged.uio.no \
--to=trond.myklebust@fys.uio.no \
--cc=hpj@urpla.net \
--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®