darlinghq / darling-dmg

FUSE module for .dmg files (containing an HFS+ filesystem)
http://www.darlinghq.org
GNU General Public License v3.0
273 stars 45 forks source link

Hard link #54

Closed jief666 closed 6 years ago

jief666 commented 6 years ago

Hi,

Not an issue but a question.

I'd link to follow hard link, like os x does (while get xattr fro example). The reference of a hard link is an inode number. Is there already a way to find file from its inode number ?

Thanks.

LubosD commented 6 years ago

I don't know much about hardlinks in HFS. I simply believed they work out of box.

Do they not work? I don't quite understand this:

I'd link to follow hard link, like os x does (while get xattr fro example).

jief666 commented 6 years ago

No they don't work. I Got the answer. A hard link has a type hlnk and it's referenced file "inode" number in ff.file.permissions.special.iNodeNum. Well, in fact, that's not an inode number. It's a number to construct a filename that is kept in \0\0\0\0HFS+ Private Data. Format is iNode + number. So each access to a hlnk file must be redirect to this "iNode file".

tomkoen commented 6 years ago

is it solved?

jief666 commented 6 years ago

Yes, it's now supported.