I Found a Bug in Apple's Fsck_hfs (medium.com)

18 points by zdw 20 hours ago

6 comments:

by nikhizzle 4 hours ago

I believe I potentially wrote that code in 2006 when working at Apple on HFS. What a remarkable world!

by mrpippy 4 hours ago

I would consider HFS+ to be a legacy filesystem at this point, something you shouldn't use without a really good reason (interop with pre-macOS 10.13 machines being the only one I can think of).

Fun fact: HFS dates back to the 80s, and so does the fsck code. https://github.com/apple-oss-distributions/hfs/blob/main/lib... still contains '#if BSD' blocks for the Mac OS X code, and classic Mac code in the '#else'.

And 'dfalib' refers to 'Disk First Aid', the classic Mac fsck application.

by mrpippy 4 hours ago

Note to the author: did you file an Apple feedback for this? You should put that FB number in your post and the GitHub repo, it will ease the process for any Apple employees who see this and want to get it fixed.

by LoganDark 5 hours ago

[flagged]

by happyPersonR 5 hours ago

Couldn’t that have been an underlying block error?

Do we know if they tried 2 different disks?

by ai_slop_hater 5 hours ago

I don't read anything hosted on medium.com or substack.com

Data from: Hacker News, provided by Hacker News (unofficial) API