views:

76

answers:

3

In the Windows world I can create a file system filter (upper or lower) in order to hook my driver to action when a file is changed (for example auditing or creating virtual drives).

Do you know which is the similar model in a Mac? the I/O Kit talks about driver development but does not specify the storage model or file system. Is there another kit?

thanks a lot!

A: 

Looks like there is a private API that spotlight uses, some source available here:

http://osxbook.com/software/fslogger/

If you want to create your own filesystem (like what a virtual drive would be), use MacFuse

http://code.google.com/p/macfuse/

Lou Franco
Thanks, i will look on the first link as I need to do something similar, just a bit more complex. But having some source is a good starting point. Thanks
No hay Problema
+1  A: 

Didn't OS X have kevent/kqueue like FreeBSD?

Marco van de Voort
This actually gave me the lead, yes, there are kqueues and kevents as stated here: http://developer.apple.com/documentation/Darwin/Conceptual/FSEvents_ProgGuide/KernelQueues/KernelQueues.html#//apple_ref/doc/uid/TP40005289-CH5-SW2 . I am going to start here.
No hay Problema
+1  A: 

Found this

http://developer.apple.com/documentation/Darwin/Conceptual/FSEvents_ProgGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40005289-CH1-DontLinkElementID_15

grrr
Thanks, interesting area to investigate. Seems that in Mac world all these stuff is spread around user mode and kernel mode. :)
No hay Problema