From: Matthew Garrett Date: Sun, 17 Jun 2012 21:05:25 +0000 (-0400) Subject: hfsplus: fix bless ioctl when used with hardlinks X-Git-Tag: v3.5-rc4~33^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dea9665fee828fb56db3bae5b9685d9fa006d33;p=pandora-kernel.git hfsplus: fix bless ioctl when used with hardlinks HFS+ doesn't really implement hard links - instead, hardlinks are indicated by a magic file type which refers to an indirect node in a hidden directory. The spec indicates that stat() should return the inode number of the indirect node, but it turns out that this doesn't satisfy the firmware when it's looking for a bootloader - it wants the catalog ID of the hardlink file instead. Fix up this case. Signed-off-by: Matthew Garrett Signed-off-by: Christoph Hellwig Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed