<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/lib/decompress.c, branch v3.4-rc2</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/lib/decompress.c?h=v3.4-rc2</id>
<link rel='self' href='https://git.amat.us/linux/atom/lib/decompress.c?h=v3.4-rc2'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2011-01-13T16:03:25Z</updated>
<entry>
<title>decompressors: add boot-time XZ support</title>
<updated>2011-01-13T16:03:25Z</updated>
<author>
<name>Lasse Collin</name>
<email>lasse.collin@tukaani.org</email>
</author>
<published>2011-01-13T01:01:23Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=3ebe12439ba7fc62e1d6ecb569b7287771716ca1'/>
<id>urn:sha1:3ebe12439ba7fc62e1d6ecb569b7287771716ca1</id>
<content type='text'>
This implements the API defined in &lt;linux/decompress/generic.h&gt; which is
used for kernel, initramfs, and initrd decompression.  This patch together
with the first patch is enough for XZ-compressed initramfs and initrd;
XZ-compressed kernel will need arch-specific changes.

The buffering requirements described in decompress_unxz.c are stricter
than with gzip, so the relevant changes should be done to the
arch-specific code when adding support for XZ-compressed kernel.
Similarly, the heap size in arch-specific pre-boot code may need to be
increased (30 KiB is enough).

The XZ decompressor needs memmove(), memeq() (memcmp() == 0), and
memzero() (memset(ptr, 0, size)), which aren't available in all
arch-specific pre-boot environments.  I'm including simple versions in
decompress_unxz.c, but a cleaner solution would naturally be nicer.

Signed-off-by: Lasse Collin &lt;lasse.collin@tukaani.org&gt;
Cc: "H. Peter Anvin" &lt;hpa@zytor.com&gt;
Cc: Alain Knaff &lt;alain@knaff.lu&gt;
Cc: Albin Tonnerre &lt;albin.tonnerre@free-electrons.com&gt;
Cc: Phillip Lougher &lt;phillip@lougher.demon.co.uk&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>Add LZO compression support for initramfs and old-style initrd</title>
<updated>2010-01-11T17:34:05Z</updated>
<author>
<name>Albin Tonnerre</name>
<email>albin.tonnerre@free-electrons.com</email>
</author>
<published>2010-01-08T22:42:46Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=cacb246f8db2b9eba89d44a0f0dd4f6ed93bc113'/>
<id>urn:sha1:cacb246f8db2b9eba89d44a0f0dd4f6ed93bc113</id>
<content type='text'>
Signed-off-by: Albin Tonnerre &lt;albin.tonnerre@free-electrons.com&gt;
Tested-by: Wu Zhangjin &lt;wuzhangjin@gmail.com&gt;
Acked-by: "H. Peter Anvin" &lt;hpa@zytor.com&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Tested-by: Russell King &lt;rmk@arm.linux.org.uk&gt;
Acked-by: Russell King &lt;rmk@arm.linux.org.uk&gt;
Cc: Ralf Baechle &lt;ralf@linux-mips.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>bzip2/lzma: don't stop search at first unconfigured compression</title>
<updated>2009-02-19T21:36:55Z</updated>
<author>
<name>Alain Knaff</name>
<email>alain@knaff.lu</email>
</author>
<published>2009-02-19T21:36:55Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e4aa7ca5a2e6d44f07ceb87d9448113f5b48a334'/>
<id>urn:sha1:e4aa7ca5a2e6d44f07ceb87d9448113f5b48a334</id>
<content type='text'>
Impact: Bugfix, avoids kernels which build but panic on boot

Fix a bug in decompress.c : only scanned until the first
non-configured compressor (with disastrous result especially if that
was gzip.)

Signed-off-by: Alain Knaff &lt;alain@knaff.lu&gt;
Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>bzip2/lzma: comprehensible error messages for missing decompressor</title>
<updated>2009-01-12T22:34:31Z</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@linux.intel.com</email>
</author>
<published>2009-01-12T22:24:04Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=23a22d57a8962479ca630c9542e62d6f86fdf927'/>
<id>urn:sha1:23a22d57a8962479ca630c9542e62d6f86fdf927</id>
<content type='text'>
Instead of failing to identify a compressed image with a decompressor
that we don't have compiled in, identify it and fail with a
comprehensible panic message.

Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>bzip2/lzma: centralize format detection</title>
<updated>2009-01-08T23:14:17Z</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2009-01-08T23:14:17Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=889c92d21db40be0b7d22a59395060237895bb85'/>
<id>urn:sha1:889c92d21db40be0b7d22a59395060237895bb85</id>
<content type='text'>
Centralize the compression format detection to a common routine in the
lib directory, and use it for both initramfs and initrd.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
</entry>
</feed>
