site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hi Hamish, 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). 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. Therefore, given that the mds process detects whenever any file on the entire filesystem is written, it seems doubtful that it uses kqueue. This email sent to site_archiver@lists.apple.com
participants (1)
-
Sam Vaughan