Skip to content

Add JFFS2 implementation#1

Merged
Schamper merged 12 commits intofox-it:mainfrom
JSCU-CNI:main
Dec 8, 2023
Merged

Add JFFS2 implementation#1
Schamper merged 12 commits intofox-it:mainfrom
JSCU-CNI:main

Conversation

@JSCU-CNI
Copy link
Contributor

This PR adds the initial version of the Dissect JFFS2 parser.

@Schamper
Copy link
Member

Schamper commented Nov 6, 2023

The .github directory seems to be missing currently, so there's no CI. Could you add that?

@Schamper
Copy link
Member

Schamper commented Nov 8, 2023

I've added the sorting just in case in 9b4f7d3, because I see other implementations doing something similar (dropping older versions).

I don't have any huge JFFS2 images, so I'm not sure what the performance implications are. If it's large, we can do something more optimistic (only ensure the last entry is the latest, leave the rest unsorted).

Let me know if you agree with this, then this should be good to go.

Edit: turns out the way I was doing sorted insertions was >= Python 3.10 only, so I've resorted to the other proposed solution where only the last entry is sorted correctly.

@Schamper Schamper changed the title initial commit Add JFFS2 implementation Nov 8, 2023
Schamper
Schamper previously approved these changes Nov 8, 2023
@JSCU-CNI
Copy link
Contributor Author

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants