Squashfs: extend decompressor framework to handle compression options
authorPhillip Lougher <phillip@lougher.demon.co.uk>
Mon, 28 Feb 2011 01:45:42 +0000 (01:45 +0000)
committerPhillip Lougher <phillip@lougher.demon.co.uk>
Mon, 28 Feb 2011 18:21:59 +0000 (18:21 +0000)
commitb7fc0ff09d24b372dc04b0c02b80659c0a66fdfe
tree9cd9a94c3b07ef8064e1952a376d964776aa4571
parent100b33c8bd8a3235fd0b7948338d6cbb3db3c63d
Squashfs: extend decompressor framework to handle compression options

Extend decompressor framework to handle compression options stored in
the filesystem.  These options can be used by the relevant decompressor
at initialisation time to over-ride defaults.

The presence of compression options in the filesystem is indicated by
the COMP_OPT filesystem flag.  If present the data is read from the
filesystem and passed to the decompressor init function.  The decompressor
init function signature has been extended to take this data.

Also update the init function signature in the glib, lzo and xz
decompressor wrappers.

Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
fs/squashfs/decompressor.c
fs/squashfs/decompressor.h
fs/squashfs/lzo_wrapper.c
fs/squashfs/squashfs.h
fs/squashfs/squashfs_fs.h
fs/squashfs/super.c
fs/squashfs/xz_wrapper.c
fs/squashfs/zlib_wrapper.c