History log of /external/squashfs-tools/squashfs-tools/xz_wrapper.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
65ad363b09a9a96b3501f28c35fe21f23cb59013 08-Jul-2013 Phillip Lougher <phillip@squashfs.org.uk> xz_wrapper: fix comment on xz_options return values

Success is actually a value of 0 or greater, because the
return value reflects the number of additional arguments
successfully parsed.

It just so happened here that all the options have an additional
argument, and so 1 is always returned on success.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
5dfb7d6b00f94dee3cb2c9a1a143b2aeea86b957 07-Jul-2013 Phillip Lougher <phillip@squashfs.org.uk> xz_wrapper: make global comp_opts a static inside xz_dump_options

This was global purely to allow xz_dump_options() to return
a pointer to it. However, making it global runs the risk coding
mistakes which should refer to a local comp_opts are hidden as they
pick up the global instead. As the global is potentially swapped and
not in host byte order this isn't a good thing.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
0b44cade81d66659cb69620999dfb318e51a0697 22-Jun-2013 Phillip Lougher <phillip@squashfs.org.uk> xz_wrapper: fix sizeof() in xz_display_options()

Sizeof() was incorrectly sizeof(comp_opts) or size of pointer,
rather than the size of the structure. On 64-bit systems it
worked because it so happens that size pointer == 8, which is the
size of the structure.

This bug has shown up now on a 32-bit system (Raspberry Pi), where
the size of pointer is 4 bytes.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
8b0edf380a8e22a1df314212705e6145bc746f8e 22-Jun-2013 Phillip Lougher <phillip@squashfs.org.uk> xz_wrapper: only set *error if an error occurs in xz_uncompress()

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
3fcced11c3e4b49b2b687010304b5156935a3b2c 03-Feb-2013 Phillip Lougher <phillip@squashfs.org.uk> unsquashfs: add support for displaying compression options

Add support to display the compression options used to
compress the filesystem in -stat.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
8a4692825eb1840d52f2f921e40346d0f8c7e702 23-Jan-2013 Phillip Lougher <phillip@squashfs.org.uk> codec_wrappers: rename block_size in uncompress() to outsize

Rename block_size parameter in uncompress() call to outsize, as it
now holds the size of the output buffer, which can be less than
block_size.

Also in the wrappers where the uncompressed length is available
in the header, don't bother calling the codec if outsize is too
small.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
668d2131d389b6b817df96484d924c2c7e93841f 30-Dec-2012 Phillip Lougher <phillip@squashfs.org.uk> xz_wrapper: Add comments describing how compression option functions work

XZ is the only compression algorithm using the "new"
compression option framework. Add some comments on the
functions that describe how the functions work, and how
they interact with the overall compression options framework.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
83d42a3fc898962aa1f1e8387f2ccb1114e0d294 01-Nov-2012 Phillip Lougher <phillip@squashfs.org.uk> Update email address

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
30d49e70cf81bdda75a9b2a735aa0aea33953692 28-Feb-2011 Phillip Lougher <phillip@lougher.demon.co.uk> xz_wrapper help text, dict-size should be 8192 bytes or larger

Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
39c2b484186d266a8d589d6f79f6b472b7e9c8c2 28-Feb-2011 Phillip Lougher <phillip@lougher.demon.co.uk> xz_wrapper: check comp opts structure read from file system for correctness

When passed a comp opts structure read from the file system check it is
the expected length. Also check dictionary size is valid.

Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
fc54d8f5676c4773522a9ede6c4527ac9b1a30ef 23-Feb-2011 Phillip Lougher <phillip@lougher.demon.co.uk> Fix comp opts swapping on big endian systems.

Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
78a0cc601b205513111a672b2ca98447d96bd228 20-Feb-2011 Phillip Lougher <phillip@lougher.demon.co.uk> Update version date and copyright date

Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
a45c9d2b6df15a359591717b71d948040efb6cd4 20-Feb-2011 Phillip Lougher <phillip@lougher.demon.co.uk> Improve and tidy up comp_opts dictionary setting code in
xz_wrapper.c.

Fix the following bugs:

1. metadata dictionary size should always be SQUASHFS_METADATA_SIZE,
the previous code incorrectly set metadata dictionary size to 4K for
4K block file systems.

2. when appending to file systems, filter_count in xz_extract_options()
wasn't correctly recomputed based on the number of filters in the
existing file system.

Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
e08e77659d1e2eac07c9ab5dffafaa70aff41c07 31-Dec-2010 plougher <plougher> Wrap some lines
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
90f6b8dc8e5525e70a625bb61f82546811e0bc9b 31-Dec-2010 plougher <plougher> Move struct definitions to xz_wrapper.h
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
1ffc835b6020c6559f0d598a41b1483c50a8945f 30-Dec-2010 plougher <plougher> Add swapping to xz_dump_options and xz_extract_options
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
c2b23524dea29c795bf7114c090bba1b77ea8055 29-Dec-2010 plougher <plougher> Remove redundant if, and simplify code.
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
afeaf3a7dc0853af656c1000b364a92e4d093fed 29-Dec-2010 plougher <plougher> Add xz_extract_options - this on appending sets the internal
compressor options to the options read from the file system being
appended to.
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
6d2d0853e045219e9d252576714966ac7831dc53 29-Dec-2010 plougher <plougher> Move xz_usage() to end of file
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
17f039dcdb5ce2b556efff0ba49b475176790d90 28-Dec-2010 plougher <plougher> Add xz_dump_options which returns the xz compressor options in a form ready
to be written to the file system. Note, big endian architectures are
currently broken as no swapping is performed.
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
23df7e8c0838ab5cf2c6840d14c255dfe8fffb58 27-Dec-2010 plougher <plougher> Add -Xdict-size usage text.
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
d7f0fd36de82019ebf2ecfe3eb9d356a47c2e966 27-Dec-2010 plougher <plougher> Rename dict_size to dict-size to conform to existing option naming.
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
65f163658a72a87ce95341ac6a423a40f2b5fc07 27-Dec-2010 plougher <plougher> Rename flags to datablock in xz_init
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
14c30adab9ca2147a06975bbe99308f5f54b16f0 27-Dec-2010 plougher <plougher> Add new -Xdict_size option which allows the dictionary size to
changed from the default block size
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
7aa2f2a969f8bd684f1c31a14af9d6bba453d7f8 08-Dec-2010 plougher <plougher> Add xz_usage() function which displays usage details of the xz compressor
specific options.
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
0283718e13a5a7b2dc21bffa0041d001ecbcdb1a 07-Dec-2010 plougher <plougher> Set dictionary size to the block size.
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
d886567331690a0781c695a590e43ac37b78ad10 27-Nov-2010 plougher <plougher> Don't print unrecognised compression option if the problem was a bad or
missing compression option parameter (on a recognised compression option).
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
7b6b352b70dcd9f8e71027e8a4c1e4807fc7240d 27-Nov-2010 plougher <plougher> Add support for bcj filters (-Xbcj filter1,filter2 ...). Supported
filters x86, arm, armthumb, powerpc, ia64 and sparc
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
665c6e9a65b2be97e7e31b6effb2a3737bba292f 24-Nov-2010 plougher <plougher> Update signature of compress() and add NULL init function.
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
67dfce9c3751f0580633e8a33cea28bcfbefec04 23-Nov-2010 plougher <plougher> Add initial support for XZ compression - no filters are currently supported
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
e330c73c30f253119dd6acefc17f619148e13b8a 21-Nov-2010 plougher <plougher> Delete previous contents containing lzma1 implementation, allowing
This file to be used for xz (lzma2) support
/external/squashfs-tools/squashfs-tools/xz_wrapper.c
f5e8c0f128f48463630358bcea6063d0024cfd5a 01-Feb-2010 plougher <plougher> Add alternative implementation of lzma compressor/decompressor using
liblzma library (http://tukaani.org/xz/).
/external/squashfs-tools/squashfs-tools/xz_wrapper.c