Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2001 16:12:25 -0600
From:      Alfred Perlstein <bright@mu.org>
To:        Lamont Granquist <lamont@scriptkiddie.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: The care and feeding of Vnodes?
Message-ID:  <20011222161225.B48837@elvis.mu.org>
In-Reply-To: <20011222134326.X386-100000@coredump.scriptkiddie.org>; from lamont@scriptkiddie.org on Sat, Dec 22, 2001 at 02:07:02PM -0800
References:  <200112222032.fBMKWHH00532@Yorick.> <20011222134326.X386-100000@coredump.scriptkiddie.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Lamont Granquist <lamont@scriptkiddie.org> [011222 16:06] wrote:
> 
> So, yesterday I was playing around with the VFS code and trying to figure
> out how to get a 'stub' of a filesystem that I could mount and unmount.
> To do so I need to implement vfs_root() which requires returning a vnode
> for the root of the filesystem.  So, I just called getnewvnode(), passing
> it some 'stubby' vfsops that would just printf() whenever they were
> called.  That way I thought I could figure out what was getting done to
> the vnode.  I didn't do any other initialization to the vnode.
> 
> So, I mounted the filesystem this way, and tried to unmount it and I got a
> couple of vnops further into getting the filesystem to unmount.  However,
> a few minutes later my laptop locked up, and upon rebooting I got
> softupdate inconsistencies and filesystem corruption.  How did I manage to
> hose my system this badly just playing around with one vnode?  And what
> should I do in order to pass back this kind of "fake" root vnode that
> isn't backed up by any actual filestore?

Most likely your misbehaving VOPs caused corruption of other data.

Without source to your failed experiment it will be hard to determine
what the problem is.

-- 
-Alfred Perlstein [alfred@freebsd.org]
'Instead of asking why a piece of software is using "1970s technology,"
 start asking why software is ignoring 30 years of accumulated wisdom.'
Tax deductable donations for FreeBSD: http://www.freebsdfoundation.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011222161225.B48837>