diff options
author | Ricardo Ribalda Delgado <ricardo.ribalda@uam.es> | 2009-04-27 20:33:33 +0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-05-01 01:07:04 +0400 |
commit | c1a0fd5f2864e9d381f4a3dc948942cac974e89a (patch) | |
tree | deb3c281cac62916927371a3ebcd9374901ecfe1 /fs/ubifs/ubifs.h | |
parent | 35f6a943f7d92145d607c1d55f5c2e2eae5be630 (diff) | |
download | u-boot-c1a0fd5f2864e9d381f4a3dc948942cac974e89a.tar.xz |
ubifs: BUG: Blocks commpressed with zlib
Blocks compressed with zlib dont have the full gzip header.
Without this patch, block compressed with zlib cannot be readed!
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@uam.es>
Diffstat (limited to 'fs/ubifs/ubifs.h')
-rw-r--r-- | fs/ubifs/ubifs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h index 91351de75a..43865aa66e 100644 --- a/fs/ubifs/ubifs.h +++ b/fs/ubifs/ubifs.h @@ -2172,6 +2172,7 @@ int ubifs_decompress(const void *buf, int len, void *out, int *out_len, /* todo: Move these to a common U-Boot header */ int lzo1x_decompress_safe(const unsigned char *in, size_t in_len, unsigned char *out, size_t *out_len); -int gunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp); +int zunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp, + int stoponerr, int offset); #endif /* !__UBIFS_H__ */ |