abique/tmfs — pull request #6 by torarnv (2012-10-15 22:54:47+00:00)
Title: Handle hard-links inside of .HFS+ Private Directory Data

By using regular stat on the file entries in each hard-linked
directory we would report back the same "broken" directories as
you would normally see without tmfs (empty size and weird permissions
and link count).

This caused tools such as find to only recurse to the next level
of hard-linked directories, and then stop. Navigating the directory
structure manually worked fine though, as each step would cause a
new call to readdir(), which would handle that first level of
directory hard-links.

We circumvent this problem by not stat'ing the files inside the
private data directly, but mapping the file entries to the original
path, and then going through our own stat implementation which deals
with the hard-linked directories.