NetBSD Problem Report #1447
From gnats Mon Sep 11 21:09:28 1995
Received: from mail.Germany.EU.net (mail.Germany.EU.net [192.76.144.65]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id VAA00579 for <gnats-bugs@gnats.netbsd.org>; Mon, 11 Sep 1995 21:09:25 -0400
Message-Id: <199509101456.QAA02469@charles.tools.de>
Date: Sun, 10 Sep 1995 16:56:02 +0200
From: Wolfgang Solfrank <ws@charles.tools.de>
Reply-To: ws@charles.tools.de
To: gnats-bugs@gnats.netbsd.org
Subject: lstat flushes vnodes from cache
X-Send-Pr-Version: 3.2
>Number: 1447
>Category: kern
>Synopsis: lstat flushes vnodes from cache
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 11 21:20:03 +0000 1995
>Closed-Date: Tue Mar 25 13:08:53 +0000 1997
>Last-Modified: Tue Mar 25 13:09:50 +0000 1997
>Originator: Wolfgang Solfrank
>Release: NetBSD-current as of 09 Sep 95
>Organization:
>Environment:
System: NetBSD charles.tools.de 1.0A NetBSD 1.0A (charles) #129: Sat Sep 9 21:28:49 MET DST 1995 ws@kurt:/files/NetBSD/kernel/NetBSD/sys/arch/i386/compile/charles i386
>Description:
Since lstat wants to return the attributes of a symbolic link, which mostly are
defined as the attributes of the containing directory, it calls namei with
LOCKPARENT to get the parent vnode.
This is interpreted by lookup to not cache the result of the lookup AND to drop
any entry for this vnode from the name cache.
>How-To-Repeat:
Do any ls -l and kgdb (or ddb) through the lookup code. Watch the cache
entries being dropped from the cache.
>Fix:
Either change the symlink attribute interpretation, change the interpretation
of LOCKPARENT by `lookup' (don't know whether that's feasible), or introduce
yet another flag to namei.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: ws
State-Changed-When: Tue Mar 25 05:08:53 PST 1997
State-Changed-Why:
Fixed by mycroft long ago
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.