Dissecting Apple's Sparse Image Format (ASIF)

schamper.dev

142 points by supermatou a day ago


albertzeyer - 4 hours ago

Small self-advertisement: as an alternative to dissect.cstruct, a fun side-project of mine (C parser + C interpreter in Python) can do a very similar thing:

https://github.com/albertz/PyCParser/blob/master/demos/disse...

dcrazy - 4 hours ago

More info on how ASIF differs from the decades-old sparseimage format: https://news.ycombinator.com/item?id=44259132

ComputerGuru - 3 hours ago

Image as in “filesystem snapshot” not as in “media file”.

saagarjha - 8 hours ago

I have to admit that using C syntax as a string to parse something from Python is definitely a choice. I'm not even sure I would use C structs to lay things out in C…

fragmede - 9 hours ago

I like a good jaunt with IDApro as much as the next RE, but my question is what does ASIF do that Qcow2 doesn't?

My other question is why does it take so long to copy an app out of a dmg and into /Applications. Like, just change some pointers to pointers to data on disk and shit.

ARTKILL - 8 hours ago

Worth noting ASIF's compression tradeoff also affects Spotlight indexing — since the content is opaque until mounted, you lose searchability on unmounted disk images that you'd get with a regular folder structure.