Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix extraction of files with size greater than one erase block.
A regression was introduced with commit 70a2345 where we only took inode nodes with the highest version into account when extracting files from a JFFS2 filesystem. When files have a size greater than 1 erase block, the file is split into multiple JFFS2 inode nodes having the same inode (they belong to the same file) but different versions. These files should be recreated on disk by walking through the list of inode nodes, order by version. Each node has an offset within the file so we simply seek in the output file and write the node content in place. Reference: https://sourceware.org/jffs2/jffs2-slides-transformed.pdf
- Loading branch information