site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Thanks ! That looks exactly like what I needed. Is this completely undocumented, or did I miss a piece of doc ? thanks ;-D On May 11, 2005, at 1:29 PM, John Dalgliesh wrote: Hi, I didn't see a reply to this one yet, so here's my attempt... On Tue, 10 May 2005, Nicolas Berloquin wrote: I then tried to get some attributes from the vp vnode, but I got instant-KP out of it : struct vnode_attr vap; int err = vnode_getattr(vp, &vap, ctx); any suggestions are welcome. struct vnode_attr vap; VATTR_INIT( &vap ); VATTR_WANTED( &vap, va_data_size ); int err = vnode_getattr( vp, &vap, ctx ); There are many other things you can use with VATTR_WANTED. Hope that helps! {P^/ _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... One more question, though : Is it possible to have more specific informations about the auth request, like the real VNOP that was issued and which generated the request ? vnode_if.h lists all kinds of VNOPs that seem to be more finegrained than the bits passed to the callback. I logged the bitfield for each call, and I wasn't able to see when a file gets created for example... One last thing : You say that "There are many other things you can use with VATTR_WANTED." The vnode_attr thingy must first be initialised, and then told what you want to get out of it. e.g. if you were interested in the size of the data fork, you'd do this: This email sent to site_archiver@lists.apple.com