vgone/vclean replacement?
vgone/vclean replacement?
- Subject: vgone/vclean replacement?
- From: Marek Kozubal <email@hidden>
- Date: Fri, 2 Dec 2005 03:30:25 -0500 (EST)
So I have a need to just force kill a bunch of my vnodes within my file
system. In the past I just called vgone() on the vnode, which would force
close if open, clean up and recycle the vnode. However in Tiger, vgone()
and vclean() are now a hidden functions.
So whats the best way now, to force kill a vnode? I've gone though the
xnu sources about 20 times now, and it seems the things that eventually
call vgone & vclean check for the various counts to be certain values, not
good when you want the thing to die reguardless.
From my research it seems some combination of vnode_recycle, vnode_put,
and forcing my vnodes close if my own open count is not 0. But I'm
wondering if there's a better way that I'm missing.
Thanks in advance!
-Marek
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden