tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: multiple vnodes for same file?



On Sun, Jul 01, 2012 at 04:05:58AM +0200, Emmanuel Dreyfus wrote:
 > In perfuse, I attempt to reuse the same userland puffs node when the
 > same file is looked up. I do that by searching an inode number match
 > accross siblings.
 > 
 > I experience unleasant things such as INACTIVE after RECLAIM on the same
 > puffs node, which cause crashes since RECLAIM releases ressources
 > associated with the node.
 > 
 > I suspect this is because the kernel used two different vnodes for the
 > same file. The different vnodes being represented by the same puffs node
 > in libperfuse, that can explain I still get activity after RECLAIM. Is
 > that possible? Is it sane behavior to use two vnodes for the same file
 > at once, or is that a bug in kernel part of puffs?

It should not happen; if it does, something is badly wrong somewhere.

There are various moderately bogus things that go on with device
vnodes, though; are the vnodes making trouble devices?

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index