Subject: Re: vnode uniqueness question
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: tech-kern
Date: 08/09/2002 13:03:24
der Mouse wrote:
> I have a question about vnodes and uniqueness: is it an error to have
> two distinct vnodes that refer to the same entity?  I've been looking

Yes.

> through various filesystem lookup routines and I can't see anything
> that prevents it, but I can also see some interesting failure modes
> looming if (for example) looking up .. twice returns different vnodes,
> even if they both refer to the same filesystem entity.
> 
> For example, kernfs_lookup calls getnewvnode() for every lookup (aside
> from ., and .. which it should never be asked to handle).  Is this

This definitely looks broken. Send-pr?

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-