Re: Rép : how to retrieve who does the modification with kqueue or fsevent?
Re: Rép : how to retrieve who does the modification with kqueue or fsevent?
- Subject: Re: Rép : how to retrieve who does the modification with kqueue or fsevent?
- From: James Peach <email@hidden>
- Date: Thu, 24 Jun 2010 08:45:30 -0700
On Jun 24, 2010, at 12:54 AM, Laurent Vinet wrote:
> Hi James,
>
> Thanks for your response. In my case I can limit the scope of my application to local filesystems.
>
> In fact a way to do this exists. fslogger (http://osxbook.com/software/fslogger) use a (more?) low/private level approch: a clone of the fsevent.
> As say Singh "fslogger is a user-space program that subscribes to the same file system event notification mechanism as the Spotlight metadata server" and in this case the pid is provided by the kfs_event.
>
> So, is the "Spotlight metadata server" can give me the application pid ?
Nope, this is out of scope for Spotlight.
> I don't found anything in the "Spotlight Metadata Attributes"... do I have to use the fslogger approch despite the status and the potentiel problems described by Singh ?
Singh's caveats section is accurate. You should not ship code to customers that depends on this approach.
You should file an enhancement request at http://bugreporter.apple.com, to request a supported way of doing this in a future release.
>
> Thanks in advance.
>
> Laurent
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Filesystem-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden