Skip to content

Reference-level disk format documentations? #263

Answered by mhx
oxalica asked this question in Q&A
Discussion options

You must be logged in to vote

Hi and thanks for your feedback!

I've already tried to update dwarfs-format.md based on some of your questions.

I think having more alternative reader implementations is also good for the community of a file-format.

I agree that this would be desirable.

How hard would it be?

That depends on how much of the code you want to re-implement.

The most complex part is very likely going to be reading the metadata. This uses Frozen2, which is a very space-efficient, memory-mappable representation of Thrift data structures. The exact layout of the representation is defined by the "schema", which you've already come across.

You can actually inspect the schema using dwarfsck:

$ dwarfsck image.dwa…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@oxalica
Comment options

@mhx
Comment options

mhx May 13, 2025
Maintainer

@mhx
Comment options

mhx May 14, 2025
Maintainer

@oxalica
Comment options

@mhx
Comment options

mhx May 22, 2025
Maintainer

Answer selected by oxalica
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants