Re: [PATCH 5/5] squashfs: Make SquashFS 4 use the new pcomp crypto interface

From: Geert Uytterhoeven
Date: Thu Feb 19 2009 - 08:42:28 EST


Hi Jared,

How's AXFS going?

On Wed, 18 Feb 2009, Jared Hulbert wrote:
> > Modify SquashFS 4 to use the new "pcomp" crypto interface for decompression,
> > instead of calling the underlying zlib library directly. This simplifies e.g.
> > the addition of support for hardware decompression and different decompression
> > algorithms.
>
> When did this become an option? I thought zlib in the crypto
> interface was not compatible with zlib. Is that not the case anymore?

The "deflate" crypto module uses hardcoded parameters for the raw deflate mode,
that's why it's incompatible.

However, the new "zlib" crypto module is compatible with zlib, as you can
specify the all (de)compression parameters.

BTW, you probably want to read the full patch series, including the
introduction :-)

> Have you looked at AXFS enough to judge if this would be as easy a
> job as it looks to convert?

I looked at the relevant code in AXFS before. Yes, I think it would be an
easy job.

> How do you get from here to supporting alternate compressors?

Your file system code needs a mapping from compressor ID (as stored in your
file system metadata) to crypto module name and (de)compression parameters.

With kind regards,

Geert Uytterhoeven
Software Architect

Sony Techsoft Centre Europe
The Corporate Village  Da Vincilaan 7-D1  B-1935 Zaventem  Belgium

Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: Geert.Uytterhoeven@xxxxxxxxxxx
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 Â RPR Brussels
Fortis  BIC GEBABEBB  IBAN BE41293037680010
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/