JFFS2 compression
Artem B. Bityuckiy
abityuckiy at yandex.ru
Wed Oct 20 08:06:23 EDT 2004
> If the "one step" means that you would like to use only one
> jffs2_decompress/... call than the answer is no.
Ok, thanks for answer, I suspected so. But I was confused by the
interface function jffs2_free_comprbuf, and slender hope have appeared. :-)
>
> But I can imagine a solution, where you can call jffs2_compress
> separatedly for the small buffers, and you can uncompress it using a loop.
>
> The compression buffer can be something like the following:
> - original_size_of_small_buffer1
> - compressed_size_of_small_buffer1
> - comprtype (return value of jffs2_compress)
> - compressed data1
> - original_size_of_small_buffer2
> - compressed_size_of_small_buffer2
> - comprtype (return value of jffs2_compress)
> - compressed data2
> ...
>
> I don't know it is OK for you or not.
It would be OK, if I don't have to store the sizes of original buffers
(original_size_of_small_buffer1, etc) in the node... This is because the
number of input small buffers isn't fixed...
Thank you.
--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
More information about the linux-mtd
mailing list