]> www.infradead.org Git - mtd-utils.git/commitdiff
Disable LZO compression by default
authorJosh Boyer <jwboyer@gmail.com>
Fri, 3 Aug 2007 13:34:38 +0000 (08:34 -0500)
committerJosh Boyer <jwboyer@gmail.com>
Fri, 3 Aug 2007 13:34:38 +0000 (08:34 -0500)
When the recent LZO compression support went into mtd-utils recently,
it was enabled by default.  This means that mkfs.jffs2 will default to
creating images with lzo compression as the default.

Older kernels cannot decompress such images, so lzo should be disabled
by default.  The patch below fixes this.  To enable lzo compression
from now on, simply pass '-X lzo' as an option to mkfs.jffs2.

Signed-off-by: Josh Boyer <jwboyer@gmail.com>
compr_lzo.c

index c15fd329fad77439caae271ac1193c7078b020a7..fb54600b5db916cbbdca5bb83a78f62f058d0b31 100644 (file)
@@ -85,7 +85,7 @@ static struct jffs2_compressor jffs2_lzo_comp = {
        .compr = JFFS2_COMPR_LZO,
        .compress = &jffs2_lzo_cmpr,
        .decompress = &jffs2_lzo_decompress,
-       .disabled = 0,
+       .disabled = 1,
 };
 
 int jffs2_lzo_init(void)