fsevents fail to fire for some paths, but not all

Number:rdar://10207999 Date Originated:29-Sep-2011 12:36 PM
Status:Open Resolved:
Product:Mac OS X Product Version:10.7.1
Classification:Serious Bug Reproducible:
29-Sep-2011 12:36 PM Travis Tilley:

Please read the github issue comments, starting with: https://github.com/thibaudgg/rb-fsevent/issues/10#issuecomment-2229407

While the bug is occuring, realpath()/readdir() and FSCopyAliasInfo() return paths with different case. The filesystem is always HFS+. It appears that Dropbox exacerbates the problem, but is not in itself responsible. In all scenarios, renaming the folder to a different case and back fixes the problem.

I guess my second biggest problem here is that people see the bug report, rename a directory, and go on with their lives... leaving me in the dark about the issue's root cause. ;)

Steps to Reproduce:
1. not
2. a
3. clue

Expected Results:

events should always fire.

Actual Results:

if realpath() and FSCopyAliasInfo() return different case for a path, then fsevents are not fired.


The bug is reliably detected by this code: https://github.com/andreyvit/find-fsevents-bugs/blob/master/find-fsevents-bugs.c

Unfortunately, I am unaware of how to reliably _reproduce_ the bug myself, and it's easy to accidentally fix.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!