Hi,

Sorry, this won't be threaded because I only just subscribed, but, I
wanted to clear up some possible confusion.

Armijn Hemel armijn at gpl-violations.org wrote:
>On 06/21/2013 04:11 PM, Michael Jack Kaczynski wrote:
>> Could depend on what kernel you have. I don't think the kernel had
>> squashfs lzma support until 2.6.38.

Kernel 2.6.38 added support for xz (lzma2) compression, there has
never been a mainline kernel which supported "lzma" compression.

>
>My kernel has no squashfs support. Unsquashfs is a pure userspace tool.

Yes, Unsquashfs supports lzma compression, and distribution binaries
may support it depending on what options the distribution maintainer
choose.  If the Unsquashfs in your distribution of choice doesn't
support it, then you can download the source code and compile it
yourself.

The latest release is 4.2 from 2011 which is pretty ancient, it can be
downloaded from Squashfs.sourceforge.net.  The development git
repository is https://git.kernel.org/cgit/fs/squashfs/squashfs-tools.git,
which contains a much more modern version.

A little bit of history may explain why there is no mainline kernel
which supports lzma compression.  I produced a squashfs-tools and
kernel implementation of lzma (lzma1) for Squashfs 4.0 in 2010.  This
format unfortunately did not live long (or prosper) because Linus
Torvalds rejected the kernel code in 2010, mainly because the existing
lzma1 kernel code is a mess and my patch unfortunately brought that to
his attention, with the response the existing code is a mess and I
don't want to accept any changes until it is cleaned up (the actual
response was more "colourful").   Unfortunately the existing code was
impossible to clean up, and so lzma compressed filesystems were
effectively history from then on.

I added xz compression (lzma2) a year later which went into mainline
in 2.6.38.  But it is evident a number of companies in the meantime
picked up my lzma patches and produced systems using them.  For this
reason Squashfs-tools retains the ability to read and produce lzma
compressed filesystems, although its use is deprecated.

As far as the kernel patches is concerned (if you want to produce a
kernel that can mount lzma compressed filesystems), my patches should
still be available in archives of the linux kernel mailing list.  I
did have a git repository that contained these patches on kernel.org,
but this got destroyed when kernel.org got hacked (kernel.org came
back online with no original repositories, and I've seen no reason to
put it back).  If you want these patches and don't want to look back
though the mailing list archives for them, then I do have a copy of
the original repository somewhere, which I can give you if you email
me privately.

Phillip

>
>armijn

Reply via email to