kempniu / yafut

Yet Another File UTility
GNU General Public License v2.0
4 stars 3 forks source link

Support disabling Yaffs2 summaries #20

Closed kempniu closed 4 months ago

kempniu commented 4 months ago

By default, Yaffs2 code stores a so-called summary at the end of each block. These summaries are arrays containing the useful parts of the tags for the chunks in a given block. Storing tag data in such a condensed form enables retrieving all the tags for a given block in a single read.

Summaries are merely a performance optimization and maintaining them requires extra storage space. Add a new command-line option, -S, which prevents summaries from being written, saving some storage space at the cost of slower file system scanning. Update README.md accordingly.