Re: EVFILT_VNODES?
Re: EVFILT_VNODES?
- Subject: Re: EVFILT_VNODES?
- From: Sam Vaughan <email@hidden>
- Date: Wed, 25 May 2005 10:25:50 +1000
Hi Hamish,
I think you can receive notifications on vnode operations using the
kauth API, which is new in Tiger. I just searched
developer.apple.com for "kauth" and didn't turn up much, but there
looks to be some meat in sys/kauth.h.
Sam
On 25/05/2005, at 5:04 AM, Hamish Allan wrote:
Hi all,
As I understand it, for the contents of a directory to be monitored
using a kqueue, it must be open (at least O_EVTONLY).
Therefore, given that the mds process detects whenever any file on
the entire filesystem is written, it seems doubtful that it uses
kqueue.
Can anyone tell me how it works? Or could anyone recommend an
efficient method for determining when a file in a given directory or
any of its subdirectories changes, for a potentially large number of
subdirectories?
Thanks,
Hamish
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden