The error function pointer used by lzma is global (file scope) which
prevents it being used concurrently. This patch removes the global
error pointer use, and instead passes it to all functions that need it.
The error function pointer is still used by bzip2 and inflate.
This patch moves the
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk
---
fs/squashfs/Makefile |2 +-
fs/squashfs/block.c| 74 ++
fs/squashfs/squashfs.h |4 ++
fs/squashfs/zlib_wrapper.c | 109
4 files
Add knowledge of lzma/lzo compression formats to the decompressor
framework. For now these are added as unsupported. Without
these entries lzma/lzo compressed filesystems will be flagged as
having unknown compression which is undesirable.
Signed-off-by: Phillip Lougher
Move zlib buffer init/destroy code into separate wrapper file. Also
make zlib z_stream field a void * removing the need to include zlib.h
for most files.
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk
---
fs/squashfs/block.c |1 -
fs/squashfs/cache.c |1 -
Add a config option DECOMPRESS_LZMA_NEEDED which allows subsystems to
specify they need the unlzma code. Normally decompress_unlzma.c is
compiled with __init and unlzma is not exported to modules.
Move INIT definition into separate header files for bzip2/lzma/inflate
so it can be defined
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk
---
fs/squashfs/Kconfig |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/squashfs/Kconfig b/fs/squashfs/Kconfig
index 0294aa2..7ec5d7e 100644
--- a/fs/squashfs/Kconfig
+++ b/fs/squashfs/Kconfig
@@ -30,6 +30,7
This adds a decompressor framework which allows multiple compression
algorithms to be cleanly supported.
Also update zlib wrapper and other code to use the new framework.
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk
---
fs/squashfs/Makefile |2 +-
fs/squashfs/block.c
The error function pointer used by lzma is global (file scope) which
prevents it being used concurrently. This patch removes the global
error pointer use, and instead passes it to all functions that need it.
The error function pointer is still used by bzip2 and inflate.
This patch moves the
Add knowledge of lzma/lzo compression formats to the decompressor
framework. For now these are added as unsupported. Without
these entries lzma/lzo compressed filesystems will be flagged as
having unknown compression which is undesirable.
Signed-off-by: Phillip Lougher
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk
---
fs/squashfs/Makefile |2 +-
fs/squashfs/block.c| 74 ++
fs/squashfs/squashfs.h |4 ++
fs/squashfs/zlib_wrapper.c | 109
4 files
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk
---
fs/squashfs/Kconfig|5 ++
fs/squashfs/Makefile |1 +
fs/squashfs/decompressor.c |4 +
fs/squashfs/lzma_wrapper.c | 151
fs/squashfs/squashfs.h |3 +
5
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk
---
fs/squashfs/decompressor.h |4 ++--
fs/squashfs/zlib_wrapper.c |2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/squashfs/decompressor.h b/fs/squashfs/decompressor.h
index 778760c..7425f80 100644
---
root == root r...@lougher.demon.co.uk 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
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk
---
fs/squashfs/Kconfig |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/squashfs/Kconfig b/fs/squashfs/Kconfig
index 0294aa2..7ec5d7e 100644
--- a/fs/squashfs/Kconfig
+++ b/fs/squashfs/Kconfig
@@ -30,6 +30,7
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk
---
fs/squashfs/Kconfig|5 ++
fs/squashfs/Makefile |1 +
fs/squashfs/decompressor.c |4 +
fs/squashfs/lzma_wrapper.c | 151
fs/squashfs/squashfs.h |3 +
5
Add a config option DECOMPRESS_LZMA_NEEDED which allows subsystems to
specify they need the unlzma code. Normally decompress_unlzma.c is
compiled with __init and unlzma is not exported to modules.
Move INIT definition into separate header files for bzip2/lzma/inflate
so it can be defined
On Sat, Dec 05, 2009 at 02:08:11PM +0100, Linus Walleij wrote:
[Mark Brown]
Isn't the standard thing here to handle this voltage to
capacity mapping in userspace if we're just extrapolating
from experimental results?
That's an easy solution of course, but then the sysfs files
specified
Thanks for all the great attention Mark!
[Mark wrote]
On Sat, Dec 05, 2009 at 02:08:11PM +0100, Linus Walleij wrote:
(...)
That's an easy solution of course, but then the sysfs files
specified by the power subsystem, i.e. all charge_*,
energy_*, capacity and time_to_* loose their meaning
On Mon, Dec 07, 2009 at 03:07:15PM +0100, Linus Walleij wrote:
[Mark wrote]
These files should only be present if we have data for them.
Userspace can't be reliant on them at present since relatively few
systems seem to implement them, for example none of my laptops
have time_to,
On Mon, 07 Dec 2009 02:25:08 +
Phillip Lougher phil...@lougher.demon.co.uk wrote:
+++ b/fs/squashfs/zlib_wrapper.c
@@ -0,0 +1,109 @@
+/*
+ * Squashfs - a compressed read only filesystem for Linux
+ *
+ * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+ * Phillip Lougher
On Mon, Dec 7, 2009 at 8:56 AM, Mark Brown
broo...@opensource.wolfsonmicro.com wrote:
One of the things we're facing is Android, which has
its userspace in plain Java JNI at the end of this link:
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=s
21 matches
Mail list logo