2009-12-07 08:25:49

by root

[permalink] [raw]
Subject: [PATCH 0/9] Squashfs: Add support for LZMA compressed filesystems

Hi,

The following patches add LZMA decompression support to Squashfs, using the
in-kernel LZMA decompression library.

The patches also add a decompression framework to Squashfs.
This allows LZMA decompression to be added cleanly, and it allows
additional decompressors to be easily added in the future.

To enable the in-kernel LZMA decompression code to be used by Squashfs,
there are two patches to the lzma code itself: one to make lzma available
to non-init code, and one to make lzma reentrant. These are obviously
not restricted to Squashfs, but are needed by any non-init code that
may wish to use lzma compression.

These patches are available in my squashfs-devel git tree in a slightly
different format (these patches have been refactored for posting, they'll
be put into a git tree ASAP).

http://git.kernel.org/?p=linux/kernel/git/pkl/squashfs-devel.git;a=summary

I would like to thank the CE Linux Forum (CELF) for supporting this work.

Thanks

Phillip


2009-12-07 08:47:17

by Peter Korsgaard

[permalink] [raw]
Subject: Re: [PATCH 0/9] Squashfs: Add support for LZMA compressed filesystems

>>>>> "root" == root <[email protected]> writes:

root> Hi,
root> The following patches add LZMA decompression support to Squashfs, using the
root> in-kernel LZMA decompression library.

root> The patches also add a decompression framework to Squashfs.
root> This allows LZMA decompression to be added cleanly, and it allows
root> additional decompressors to be easily added in the future.

root> To enable the in-kernel LZMA decompression code to be used by Squashfs,
root> there are two patches to the lzma code itself: one to make lzma available
root> to non-init code, and one to make lzma reentrant. These are obviously
root> not restricted to Squashfs, but are needed by any non-init code that
root> may wish to use lzma compression.

Nice, do you also have an mksquashfs with lzma support?

--
Bye, Peter Korsgaard

2009-12-08 18:01:24

by Phillip Lougher

[permalink] [raw]
Subject: Re: [PATCH 0/9] Squashfs: Add support for LZMA compressed filesystems

Peter Korsgaard wrote:
>>>>>> "root" == root <[email protected]> writes:
>
> root> Hi,
> root> The following patches add LZMA decompression support to Squashfs, using the
> root> in-kernel LZMA decompression library.
>
> root> The patches also add a decompression framework to Squashfs.
> root> This allows LZMA decompression to be added cleanly, and it allows
> root> additional decompressors to be easily added in the future.
>
> root> To enable the in-kernel LZMA decompression code to be used by Squashfs,
> root> there are two patches to the lzma code itself: one to make lzma available
> root> to non-init code, and one to make lzma reentrant. These are obviously
> root> not restricted to Squashfs, but are needed by any non-init code that
> root> may wish to use lzma compression.
>
> Nice, do you also have an mksquashfs with lzma support?
>

Yes, in Squashfs CVS (http://sourceforge.net/projects/squashfs/develop).
You'll need to edit the squashfs-tools Makefile to enable LZMA support.
The comments in the Makefile should, hopefully, explain how to
build LZMA support into Mksquashfs/Unsquashfs.

Once built-in, LZMA support can be specified using the -comp lzma option, i.e.

mksquashfs dir dir.img -comp lzma

Unsquashfs doesn't need any extra options, it automatically detects which
compression has been used.

You can tell which compression algorithms Mksquashfs/Unsquashfs support by
just typing the command on its own (i.e. mksquashfs, or unsquashfs). The
(de-)compressors available are displayed at the end of the output.

Phillip