jffs2

Crates.iojffs2
lib.rsjffs2
version0.2.1
sourcesrc
created_at2023-01-22 06:24:52.965907
updated_at2023-01-22 10:11:34.975974
descriptionRust implementation of jffs2 reader🦀
homepagehttps://github.com/xmoezzz/jffs2-rs
repositoryhttps://github.com/xmoezzz/jffs2-rs
max_upload_size
id764818
size3,093,236
xmoe (xmoezzz)

documentation

README

jffs2-rs

  • Rust implementation of jffs2 reader🦀

TL;DR

  • Extract the jffs2 image to the specified directory
    let path = Path::new("path/to/image.jffs2");
    let output_path = Path::new("/tmp/some/where");
    extract_jffs2(path, output_path).expect("Failed to extract file");
  • List all entries only
    let path = Path::new("path/to/image.jffs2");
    let entries = list_jffs2(path).expect("Failed to list entries");
    println!("{:?}", entries);

Current Status

  • The following compression algorithms are supported:
    • ✔ JFFS2_COMPR_NONE
    • ✔ JFFS2_COMPR_ZERO
    • ✔ JFFS2_COMPR_RTIME
    • ✗ JFFS2_COMPR_RUBINMIPS (deprecated)
    • ✗ JFFS2_COMPR_COPY (never implemented!)
    • ✔ JFFS2_COMPR_DYNRUBIN
    • ✔ JFFS2_COMPR_ZLIB
    • ✔ JFFS2_COMPR_LZO
    • ✔ JFFS2_COMPR_LZMA
Commit count: 5

cargo fmt