Mailing Lists: Apple Mailing Lists

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

Re: EVFILT_VNODES?



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: http://lists.apple.com/mailman/options/darwin-dev/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.