Re: [PATCH 06/10] AXFS: axfs_super.c

2008-08-21 Thread Phillip Lougher
Jared Hulbert wrote: +static void axfs_free_region(struct axfs_super *sbi, +struct axfs_region_desc *region) +{ + if (!region) + return; + + if (AXFS_IS_REGION_XIP(sbi, region)) + return; + + if (region-virt_addr) +

Re: [PATCH 04/10] AXFS: axfs_inode.c

2008-08-21 Thread Phillip Lougher
Jared Hulbert wrote: The memcpy in question copies a c_node to the page. The len is either the max length of a c_node and size of the buffer I'm copying to (PAGE_CACHE_SIZE) or it is the difference between the beginning of the c_node in the c_block and the end of the c_block, whichever is

Re: Adding a new platform

2008-08-21 Thread Phillip Lougher
Geert Uytterhoeven wrote: On Thu, 21 Aug 2008, Charles Manning wrote: Luckily APIs for drivers (the most common stuff that people work on) don't change that much, and the interfaces are reasonably clear. If you want some hell then try working on file systems :-). Really? So how come so few

Re: [PATCH 04/10] AXFS: axfs_inode.c

2008-08-22 Thread Phillip Lougher
Arnd Bergmann wrote: On Friday 22 August 2008, Phillip Lougher wrote: This looks very nice, but could use some comments about how the data is actually stored on disk. It took me some time to figure out that it actually allows to do tail merging into compressed blocks, which I was about

Re: [PATCH 06/10] AXFS: axfs_super.c

2008-08-22 Thread Phillip Lougher
Arnd Bergmann wrote: On Friday 22 August 2008, Jared Hulbert wrote: This implies for block devices that the entire filesystem metadata has to be cached in RAM. This severely limits the size of AXFS filesystems when using block devices, or the else memory usage will be excessive. This is where

Re: [Squashfs-devel] [patch 0/3] [RFC] zlib crypto module

2008-09-05 Thread Phillip Lougher
Geert Uytterhoeven wrote: These patches add a (de)compression module for the zlib format using the crypto API: [1] crypto: Add a zlib crypto module [2] tcrypt: Add a self test for the zlib crypto module [3] squashfs: Switch from zlib/inflate to zlib crypto module The last patch is a

Subject: [PATCH 14/16] Squashfs: Kconfig entry

2008-10-17 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/Kconfig | 52 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/fs/Kconfig b/fs/Kconfig index cf9db09..abbb6c2 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -1192,6 +1192,58

Subject: [PATCH 12/16] Squashfs: header files

2008-10-17 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/squashfs/squashfs.h | 100 +++ include/linux/squashfs_fs.h| 383 include/linux/squashfs_fs_i.h | 45 + include/linux/squashfs_fs_sb.h | 76 4 files changed

Subject: [PATCH 08/16] Squashfs: fragment block operations

2008-10-17 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/squashfs/fragment.c | 89 1 files changed, 89 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/fragment.c b/fs/squashfs/fragment.c new file mode 100644 index 000..4a23e83

Subject: [PATCH 15/16] Squashfs: initrd support

2008-10-17 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- init/do_mounts_rd.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/init/do_mounts_rd.c b/init/do_mounts_rd.c index fedef93..30086a7 100644 --- a/init/do_mounts_rd.c +++ b/init/do_mounts_rd.c @@ -5,6 +5,7

Subject: [PATCH 11/16] Squashfs: block operations

2008-10-17 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/squashfs/block.c | 257 +++ 1 files changed, 257 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/block.c b/fs/squashfs/block.c new file mode 100644 index 000..0d1a74d --- /dev

Subject: [PATCH 13/14] Squashfs: Makefiles

2008-10-17 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/Makefile |1 + fs/squashfs/Makefile |8 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/fs/Makefile b/fs/Makefile index b6f27dc..42d881b 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -75,6 +75,7

Subject: [PATCH 09/16] Squashfs: uid/gid lookup operations

2008-10-17 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/squashfs/id.c | 84 ++ 1 files changed, 84 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/id.c b/fs/squashfs/id.c new file mode 100644 index 000..b4881d7 --- /dev/null +++ b

Subject: [PATCH 02/16] Squashfs: directory lookup operations

2008-10-17 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/squashfs/namei.c | 226 +++ 1 files changed, 226 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/namei.c b/fs/squashfs/namei.c new file mode 100644 index 000..fdc1b03 --- /dev

Subject: [PATCH 00/16] Squashfs: compressed read-only filesystem

2008-10-17 Thread Phillip Lougher
This is a second attempt at mainlining Squashfs. The first attempt was way way back in early 2005 :-) Since then the filesystem layout has undergone two major revisions, and the kernel code has almost been completely rewritten. Both of these were to address the criticisms made at the original

Subject: [PATCH 10/16] Squashfs: cache operations

2008-10-17 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/squashfs/cache.c | 316 +++ 1 files changed, 316 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/cache.c b/fs/squashfs/cache.c new file mode 100644 index 000..0fe994f --- /dev

Subject: [PATCH 06/16] Squashfs: super block operations

2008-10-17 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/squashfs/super.c | 411 +++ 1 files changed, 411 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/super.c b/fs/squashfs/super.c new file mode 100644 index 000..a374271 --- /dev

Re: Subject: [PATCH 01/16] Squashfs: inode operations

2008-10-20 Thread Phillip Lougher
Jörn Engel wrote: None of the comments below are a reason against mainline inclusion, imo. They should get handled, but whether that happens before or after a merge doesn't really matter. Yeah you're right regarding your comments. That's where code-review comes in handy, to spot things you

Re: Subject: [PATCH 00/16] Squashfs: compressed read-only filesystem

2008-10-20 Thread Phillip Lougher
David P. Quigley wrote: Looking through the code I see two references to xattrs, one is the index of the xattr table in the superblock and there seems to be struct member in one of the inode structures that is an index into this table. Looking through the code I don't see either of these used at

Re: Subject: [PATCH 00/16] Squashfs: compressed read-only filesystem

2008-10-20 Thread Phillip Lougher
David P. Quigley wrote: In SELinux and other LSMs symlinks and directories are also labeled so they will need xattr entries. BTW you don't mention device, fifo and socket inodes... Do they ever get labelled? It's something I was going to look into closer to an implementation, but it would

Re: Subject: [PATCH 00/16] Squashfs: compressed read-only filesystem

2008-10-23 Thread Phillip Lougher
Geert Uytterhoeven wrote: Hi Phillip, On Fri, 17 Oct 2008, Phillip Lougher wrote: This is a second attempt at mainlining Squashfs. The first attempt was way This is great news! I ran a quick test of squashfs 4.0 (the CVS version) on UML/ia32 and ppc64, and it seems to work fine

Re: Subject: [PATCH 01/16] Squashfs: inode operations

2008-10-23 Thread Phillip Lougher
Geert Uytterhoeven wrote: Sparse with endian checking (make C=2 CHECKFLAGS=-D__CHECK_ENDIAN__) complains aibout these: | fs/squashfs/inode.c:306:25: warning: cast to restricted __le16 | fs/squashfs/inode.c:324:25: warning: cast to restricted __le16 and it seems to be right, as inode.i_mode is

[PATCH V2 00/16] Squashfs: compressed read-only filesystem

2008-10-28 Thread Phillip Lougher
Hi, This a respin of the Squashfs patches incorporating the review comments received. Thanks to everyone who have sent comments. Summary of changes in patch respin: 1. Functions changed to return 0 on success and -ESOMETHING on error 2. Header files moved from include/linux to fs/squashfs 3.

[PATCH V2 16/16] MAINTAINERS: squashfs entry

2008-10-28 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 16202c8..bc5b063 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3951,6 +3951,13 @@ L: [EMAIL PROTECTED] W

[PATCH V2 15/16] Squashfs: initrd support

2008-10-28 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- init/do_mounts_rd.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/init/do_mounts_rd.c b/init/do_mounts_rd.c index a7c748f..0f0f0cf 100644 --- a/init/do_mounts_rd.c +++ b/init/do_mounts_rd.c @@ -9,6 +9,7

[PATCH V2 02/16] Squashfs: directory lookup operations

2008-10-28 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/squashfs/namei.c | 242 +++ 1 files changed, 242 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/namei.c b/fs/squashfs/namei.c new file mode 100644 index 000..db03ffe --- /dev

[PATCH V2 11/16] Squashfs: block operations

2008-10-28 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/squashfs/block.c | 256 +++ 1 files changed, 256 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/block.c b/fs/squashfs/block.c new file mode 100644 index 000..da5f88b --- /dev

[PATCH V2 10/16] Squashfs: cache operations

2008-10-28 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/squashfs/cache.c | 315 +++ 1 files changed, 315 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/cache.c b/fs/squashfs/cache.c new file mode 100644 index 000..d121f31 --- /dev

[PATCH V2 12/16] Squashfs: header files

2008-10-28 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/squashfs/squashfs.h | 89 ++ fs/squashfs/squashfs_fs.h| 380 ++ fs/squashfs/squashfs_fs_i.h | 45 + fs/squashfs/squashfs_fs_sb.h | 76 + 4 files changed, 590

[PATCH V2 09/16] Squashfs: uid/gid lookup operations

2008-10-28 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/squashfs/id.c | 89 ++ 1 files changed, 89 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/id.c b/fs/squashfs/id.c new file mode 100644 index 000..720973f --- /dev/null +++ b

[PATCH V2 01/16] Squashfs: inode operations

2008-10-28 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/squashfs/inode.c | 346 +++ 1 files changed, 346 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/inode.c b/fs/squashfs/inode.c new file mode 100644 index 000..840c82b --- /dev

[PATCH V2 03/16] Squashfs: directory readdir operations

2008-10-28 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/squashfs/dir.c | 236 + 1 files changed, 236 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/dir.c b/fs/squashfs/dir.c new file mode 100644 index 000..f5564e5 --- /dev/null

[PATCH V2 13/16] Squashfs: Makefiles

2008-10-28 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/Makefile |1 + fs/squashfs/Makefile |8 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/fs/Makefile b/fs/Makefile index 2168c90..90c1eee 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -76,6 +76,7

[PATCH V2 05/16] Squashfs: symlink operations

2008-10-28 Thread Phillip Lougher
Signed-off-by: Phillip Lougher [EMAIL PROTECTED] --- fs/squashfs/symlink.c | 119 + 1 files changed, 119 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/symlink.c b/fs/squashfs/symlink.c new file mode 100644 index 000..b031a4e --- /dev

Re: [PATCH V2 00/16] Squashfs: compressed read-only filesystem

2008-10-30 Thread Phillip Lougher
Matt Mackall wrote: On Wed, 2008-10-29 at 01:49 +, Phillip Lougher wrote: Hi, This a respin of the Squashfs patches incorporating the review comments received. Thanks to everyone who have sent comments. I read over the v3 source a few weeks ago and must say this looks greatly improved

Re: [PATCH V2 10/16] Squashfs: cache operations

2008-10-30 Thread Phillip Lougher
Jörn Engel wrote: On Wed, 29 October 2008 01:49:56 +, Phillip Lougher wrote: +/* + * Blocks in Squashfs are compressed. To avoid repeatedly decompressing + * recently accessed data Squashfs uses two small metadata and fragment caches. + * + * This file implements a generic cache

Re: [PATCH V2 10/16] Squashfs: cache operations

2008-10-31 Thread Phillip Lougher
Jörn Engel wrote: Only one of your problems seems to be real. Not sure if or how we can solve that one, though. Sorry don't agree. But I'm not going to argue this like a couple of old maids. I'll keep what I currently do unless Andrew Morton or someone else says it's not getting

Re: LZMA inclusion

2008-12-07 Thread Phillip Lougher
Jörn Engel wrote: On Sat, 6 December 2008 23:56:50 +0200, Lasse Collin wrote: Since you are improving the crypto API, maybe it would be a good idea to add a flag to tell the decoder that the whole output buffer will be kept available to the multi-call decoder. I'm not convinced this is the

Re: LZMA inclusion

2008-12-08 Thread Phillip Lougher
Lasse Collin wrote: Phillip Lougher wrote: Currently, as mentioned above, Squashfs decompresses into a single contiguous output buffer. But, due to the linux kernel mailing list's dislike of vmalloc, this is being changed. In future Squashfs will decompress into a sequence of 4 KiB output

Re: LZMA inclusion

2008-12-08 Thread Phillip Lougher
Jörn Engel wrote: On Sun, 7 December 2008 23:32:32 +, Phillip Lougher wrote: Currently, as mentioned above, Squashfs decompresses into a single contiguous output buffer. But, due to the linux kernel mailing list's dislike of vmalloc, this is being changed. Don't blame lkml, blame Intel

[PATCH V3 05/17] Squashfs: symlink operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/symlink.c | 118 + 1 files changed, 118 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/symlink.c b/fs/squashfs/symlink.c new file mode 100644 index 000

[PATCH V3 01/17] Squashfs: inode operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/inode.c | 346 +++ 1 files changed, 346 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/inode.c b/fs/squashfs/inode.c new file mode 100644 index 000..7a63398

[PATCH V3 17/17] MAINTAINERS: squashfs entry

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index befacf0..6ed506f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4049,6 +4049,13 @@ L: cbe-oss

[PATCH V3 11/17] Squashfs: block operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/block.c | 274 +++ 1 files changed, 274 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/block.c b/fs/squashfs/block.c new file mode 100644 index 000..c837dfc

[PATCH V3 14/17] Squashfs: Kconfig entry

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/Kconfig | 52 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/fs/Kconfig b/fs/Kconfig index ff0e819..2553e0b 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -894,6

[PATCH V3 02/17] Squashfs: directory lookup operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/namei.c | 242 +++ 1 files changed, 242 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/namei.c b/fs/squashfs/namei.c new file mode 100644 index 000..9e39865

[PATCH V3 09/17] Squashfs: uid/gid lookup operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/id.c | 94 ++ 1 files changed, 94 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/id.c b/fs/squashfs/id.c new file mode 100644 index 000..3795b83 --- /dev

[PATCH V3 10/17] Squashfs: cache operations

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/cache.c | 412 +++ 1 files changed, 412 insertions(+), 0 deletions(-) diff --git a/fs/squashfs/cache.c b/fs/squashfs/cache.c new file mode 100644 index 000..f29eda1

[PATCH V3 12/17] Squashfs: header files

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/squashfs.h | 90 ++ fs/squashfs/squashfs_fs.h| 381 ++ fs/squashfs/squashfs_fs_i.h | 45 + fs/squashfs/squashfs_fs_sb.h | 76 + 4 files changed

[PATCH V3 13/17] Squashfs: Makefiles

2009-01-05 Thread Phillip Lougher
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/Makefile |1 + fs/squashfs/Makefile |8 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/fs/Makefile b/fs/Makefile index e6f423d..3f8843c 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -73,6

Squashfs 4.0 tools (for 2.6.29) released

2009-04-05 Thread Phillip Lougher
Hi, I'm pleased to announce the first release of the squashfs 4.0 tools. These are needed by any Squashfs users using linux 2.6.29. They are available from http://sourceforge.net/projects/squashfs The changes from the change-log are: 1. Unsquashfs improvements: 1.1 Support for 4.0

Re: [PATCH 1/6] lib/decompress_*: only include linux/slab.h if STATIC is not defined

2009-08-04 Thread Phillip Lougher
Andrew Morton wrote: On Mon, 3 Aug 2009 16:58:16 +0200 Albin Tonnerre albin.tonne...@free-electrons.com wrote: These includes were added by 079effb6933f34b9b1b67b08bd4fd7fb672d16ef to fix the build when using kmemtrace. However this is not necessary when used to create a compressed kernel,

Re: [PATCH 1/6] lib/decompress_*: only include linux/slab.h if STATIC is not defined

2009-08-04 Thread Phillip Lougher
H. Peter Anvin wrote: On 08/04/2009 05:47 PM, Phillip Lougher wrote: Andrew Morton wrote: On Mon, 3 Aug 2009 16:58:16 +0200 Albin Tonnerre albin.tonne...@free-electrons.com wrote: These includes were added by 079effb6933f34b9b1b67b08bd4fd7fb672d16ef to fix the build when using kmemtrace

Re: [PATCH 1/6] lib/decompress_*: only include linux/slab.h if STATIC is not defined

2009-08-04 Thread Phillip Lougher
Andrew Morton wrote: On Wed, 05 Aug 2009 01:47:57 +0100 Phillip Lougher phil...@lougher.demon.co.uk wrote: What do you normally do in this situation? I normally fix the rejects ;) But I'd like to confirm that the two patches don't fix the same thing via different means. Lacking a full

[PATCH 07/9] lzma: Make lzma available to non initramfs/initrd code

2009-12-07 Thread Phillip Lougher
differently for each decompressor. Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- include/linux/decompress/bunzip2_mm.h | 12 include/linux/decompress/inflate_mm.h | 12 include/linux/decompress/mm.h |3 --- include/linux/decompress/unlzma_mm.h

[PATCH 8/9] Squashfs: select DECOMPRESS_LZMA_NEEDED when including support for lzma

2009-12-07 Thread Phillip Lougher
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

[PATCH 3/9] Squashfs: add a decompressor framework

2009-12-07 Thread Phillip Lougher
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

[PATCH 9/9] lzma: make lzma reentrant

2009-12-07 Thread Phillip Lougher
the definition into the separate bzip2/inflate header files. This prevents gcc from complaining about an unused definition compiling lzma. Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- include/linux/decompress/bunzip2_mm.h |1 + include/linux/decompress/inflate_mm.h |1

[PATCH 4/9] Squashfs: add decompressor entries for lzma and lzo

2009-12-07 Thread Phillip Lougher
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 phil

[PATCH 1/9] Squashfs: move zlib decompression wrapper code into a separate file

2009-12-07 Thread 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

[PATCH 6/9] Squashfs: add support for LZMA compressed filesystems

2009-12-07 Thread Phillip Lougher
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

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

2009-12-08 Thread Phillip Lougher
Peter Korsgaard wrote: 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

Re: [PATCH 1/9] Squashfs: move zlib decompression wrapper code into a separate file

2009-12-10 Thread Phillip Lougher
Geert Uytterhoeven wrote: Yes I did consider using the cryptoapi, but this doesn't have support for lzma in mainline. IIRC, Felix Fietkau added support for that for OpenWRT... Yes, but it isn't in mainline, and OpenWRT don't appear to have tried to submit it. IMHO the major problem with

Re: [PATCH 1/9] Squashfs: move zlib decompression wrapper code into a separate file

2009-12-10 Thread Phillip Lougher
Geert Uytterhoeven wrote: Hi Phillip, On Thu, Dec 10, 2009 at 01:38, Phillip Lougher phil...@lougher.demon.co.uk wrote: Artem Bityutskiy wrote: Did you consider using cryptoapi? UBIFS uses zlib/lzo in cryptoapi - it is a very clean way. Exactly my question, as that's why the Crypto API

[PATCH V2 0/9] Squashfs: Add support for LZMA compressed filesystems

2009-12-10 Thread Phillip Lougher
Hi, This a respin of my LZMA decompression support patches, taking into account Andrew Morton's comments regarding poorly named globals: Changes: 1. zlib_uncompress() renamed to squashfs_zlib_uncompress() (patch 1) 2. zlib_init() and zlib_free() renamed to squashfs_zlib_init()

[PATCH V2 3/8] Squashfs: add a decompressor framework

2009-12-10 Thread Phillip Lougher
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

[PATCH V2 7/8] Squashfs: select DECOMPRESS_LZMA_NEEDED when including support for lzma

2009-12-10 Thread Phillip Lougher
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

[PATCH V2 1/8] Squashfs: move zlib decompression wrapper code into a separate file

2009-12-10 Thread 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

[PATCH V2 5/8] Squashfs: add support for LZMA compressed filesystems

2009-12-10 Thread Phillip Lougher
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

[PATCH 0/3] bzip2/lzma/gzip/initramfs: NULL pointer bugs and missing error checks

2009-12-14 Thread Phillip Lougher
Hi, The following patches fix up a number of NULL pointer bugs amd missing error checks. Thanks Phillip bzip2/lzma/gzip: pre-boot malloc doesn't return NULL on failure bzip2: Add missing checks for malloc returning NULL initramfs: add missing decompressor error check ---

[PATCH 3/3] initramfs: add missing decompressor error check

2009-12-14 Thread Phillip Lougher
code check and calls the error function. Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- init/initramfs.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/init/initramfs.c b/init/initramfs.c index 4c00edc..b37d34b 100644 --- a/init/initramfs.c +++ b

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

2009-12-21 Thread Phillip Lougher
Bruno Wolff III wrote: On Mon, Dec 07, 2009 at 08:37:48 +, Phillip Lougher phil...@lougher.demon.co.uk wrote: Hi, The following patches add LZMA decompression support to Squashfs, using the in-kernel LZMA decompression library. Do these still have a chance to make 2.6.33? It's very

Re: [PATCH V2 6/8] lzma: Make lzma available to non initramfs/initrd code

2010-01-06 Thread Phillip Lougher
ahead with the mainline merge of the lib-add-support-for-lzo-compressed-kernels.patch. Once I know the mainline merge has gone ahead, I can add this to my linux-next tree. Phillip From 1cf6d32e1427398368ff189aece68aa533092e98 Mon Sep 17 00:00:00 2001 From: Phillip Lougher phil

[PATCH V2 6/8] lzma: Make lzma available to non initramfs/initrd code

2010-01-06 Thread Phillip Lougher
Fix up patch resend using a nice and dumb email client. If I'm lucky, email readers may even get the threading right :-) Phillip From 1cf6d32e1427398368ff189aece68aa533092e98 Mon Sep 17 00:00:00 2001 From: Phillip Lougher phil...@lougher.demon.co.uk Date: Wed, 6 Jan 2010 23:50:12 + Subject

Re: RFC: direct MTD support for SquashFS

2010-03-18 Thread Phillip Lougher
On Thu, Mar 18, 2010 at 4:38 PM, Ferenc Wagner wf...@niif.hu wrote: I could only compare apples to oranges before porting the patch to the LZMA variant.  So I refrain from that for a couple of days yet.  But meanwhile I started adding a pluggable backend framework to SquashFS, and would much

Re: RFC: direct MTD support for SquashFS

2010-03-19 Thread Phillip Lougher
On Fri, Mar 19, 2010 at 1:05 AM, Ferenc Wagner wf...@niif.hu wrote: Ferenc Wagner wf...@niif.hu writes: Phillip Lougher phillip.loug...@gmail.com writes: On Thu, Mar 18, 2010 at 4:38 PM, Ferenc Wagner wf...@niif.hu wrote: +static int fill_bdev_super(struct super_block *sb, void *data, int

Re: RFC: direct MTD support for SquashFS

2010-03-23 Thread Phillip Lougher
Ferenc Wagner wrote: Now with the patch series, sorry. Ferenc Wagner wf...@niif.hu writes: I've got one more patch, which I forgot to export, to pull out the common logic from the backend init functions back into squashfs_read_data(). With the bdev backend, that entails reading the first

Squashfs extended attribute file system support

2010-05-18 Thread Phillip Lougher
Hi, As promised way back in 2008, I have finished xattr support for Squashfs. Xattr layout highlights 1. Layout can store up to 2^48 bytes of compressed xattr data. 2. Number of xattrs per inode unlimited. 3. Total size of xattr data per inode 2^48 bytes of compressed data. 4. Up to 4 Gbytes

[ANN] Squashfs tools 4.1 released

2010-09-19 Thread Phillip Lougher
Hi, I'm pleased to announce the release of Squashfs tools 4.1. This release adds support for extended attributes (XATTRs), and LZMA and LZO compression. There's also new pseudo file features and the usual bug fixes. The release can be downloaded from http://sourceforge.net/projects/squashfs.

Re: [PATCH RFC 2/3] Decompressors: Add boot-time XZ support

2010-11-24 Thread Phillip Lougher
On 25/11/10 06:32, Phillip Lougher wrote: + + for (i = 0; i size; ++i) The kernel uses either i size or isize ... Disregard these, looks like my email client (Mozilla Thunderbird) is eating spaces... Very odd + if (fill == NULL flush == NULL) { and this. -- To unsubscribe from

Re: [PATCH RFC 2/3] Decompressors: Add boot-time XZ support

2010-11-25 Thread Phillip Lougher
On 24/11/10 20:54, Lasse Collin wrote: @@ -176,10 +179,20 @@ config KERNEL_LZMA bool LZMA depends on HAVE_KERNEL_LZMA help + This is the predecessor of XZ. + You seem to have moved the help text from LZMA into the entry for XZ, leaving LZMA merely with the

[PATCH 0/2] Squashfs: add XZ compression support

2010-12-08 Thread Phillip Lougher
Hi, Following the recent posting of patches by Lasse Collin to add XZ (LZMA2) support to the kernel (http://thread.gmane.org/gmane.linux.kernel/1071297), I have added support for this to Squashfs. Advantages of Squashfs XZ over the Squashfs LZMA implementation: - Significantly better

[PATCH 1/2] Squashfs: add XZ compression support

2010-12-08 Thread Phillip Lougher
Add XZ decompressor wrapper code. Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/squashfs_fs.h |1 + fs/squashfs/xz_wrapper.c | 153 + 2 files changed, 154 insertions(+), 0 deletions(-) create mode 100644 fs

[PATCH 2/2] Squashfs: Add XZ compression configuration option

2010-12-08 Thread Phillip Lougher
Signed-off-by: Phillip Lougher phil...@lougher.demon.co.uk --- fs/squashfs/Kconfig| 16 fs/squashfs/Makefile |1 + fs/squashfs/decompressor.c | 11 +++ fs/squashfs/squashfs.h |3 +++ 4 files changed, 31 insertions(+), 0 deletions(-) diff

Re: [PATCH 2/2] Squashfs: Add XZ compression configuration option

2010-12-09 Thread Phillip Lougher
Lasse Collin wrote: On 2010-12-09 Phillip Lougher wrote: +config SQUASHFS_XZ + bool Include support for XZ compressed file systems + depends on SQUASHFS + default n + select XZ_DEC Should select XZ_DEC be replaced with depends on XZ_DEC? XZ_DEC requires CRC32, so

[PATCH 0/2] Squashfs: add LZ4 compression

2013-07-21 Thread Phillip Lougher
Hi Now that LZ4 compression support is in 3.11-rc1, I have written the following two patches for Squashfs to use it. Phillip Lougher (2): Squashfs: add LZ4 compression support Squashfs: Add LZ4 compression configuration option Documentation/filesystems/squashfs.txt |8 +- fs/squashfs

[PATCH 2/2] Squashfs: Add LZ4 compression configuration option

2013-07-21 Thread Phillip Lougher
Add the glue code, and also update the documentation. Signed-off-by: Phillip Lougher phil...@squashfs.org.uk --- Documentation/filesystems/squashfs.txt |8 fs/squashfs/Kconfig| 15 +++ fs/squashfs/Makefile |1 + fs/squashfs

Re: [PATCH 0/2] Squashfs: add LZ4 compression

2013-07-21 Thread Phillip Lougher
kernels and initramfs data. Ultimately it is up to people to experiment and choose whatever compression is best for their systems. People are welcome to try the patches out and report their findings. Phillip Thanks, Gu On 07/22/2013 10:21 AM, Phillip Lougher wrote: Hi Now that LZ4