Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

vgone/vclean replacement?




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:
http://lists.apple.com/mailman/options/darwin-kernel/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.