Skip to content

Questions about ProDOS sapling and tree formats #38

Answered by fadden
hippietrail asked this question in Q&A
Discussion options

You must be logged in to vote

Block numbers are two bytes each:

The filesystem is based on 512-byte blocks, identified by a 16-bit unsigned integer. [...] Individual files have a maximum length of 2^24 - 1, one byte shy of 16MB.

When the file is a tree, the key block is a Master Index Block. Each of the index blocks it references represent 128KB, so you can have 16MB/128KB = 128 index block entries, which means the master index block is at most half full.

A variety of disk images are checked in to the TestData directory. TestData/prodos/simple-sparse.po has a few tree files on it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hippietrail
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