Vladimir 'phcoder' Serbinenko
c029da8a89
Various squash4 fixes and LZO and XZ support.
* Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
Add xzembed source files.
* grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
* grub-core/fs/squash4.c (grub_squash_super): New field compression.
(grub_squash_inode): New subtype long_dir.
(SQUASH_TYPE_LONG_DIR): New inode type.
(COMPRESSION): New enum.
(XZBUFSIZ): New const.
(grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
(read_chunk): Use data->decompress.
(zlib_decompress): New function.
(lzo_decompress): Likewise.
(xz_decompress): Likewise.
(squash_mount): Set new data fields.
(grub_squash_iterate_dir): Handle long dir.
(squash_unmount): Free xzdec and xzbuf.
(grub_squash_open): Check ino type.
(direct_read): Stylistic fixes. Use data->decompress.
(grub_squash_read_data): Likewise.
* grub-core/io/gzio.c (grub_gzio): Remove disk_input.
(get_byte): Likewise.
(grub_zlib_disk_read): Removed.
* grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
(GRUB_POSIX_BOOL_DEFINED): New define.
* grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
* grub-core/lib/xzembed/xz.h: Addmissing includes.
[!GRUB_POSIX_BOOL_DEFINED]: Define bool.
* include/grub/deflate.h (grub_zlib_disk_read): Removed.
2011-12-26 13:18:01 +01:00
..
2011-05-13 16:36:05 +02:00
2011-10-19 16:53:18 +02:00
2010-08-30 00:54:15 +02:00
2011-11-12 15:46:50 +01:00
2011-06-24 00:29:21 +02:00
2011-10-19 16:53:18 +02:00
2011-12-15 20:26:17 +01:00
2011-12-24 13:12:01 +01:00
2011-08-14 11:39:31 +02:00
2011-11-11 21:44:56 +01:00
2011-12-26 13:18:01 +01:00
2011-04-20 01:37:48 +02:00
2011-04-20 01:37:48 +02:00
2011-04-20 01:37:48 +02:00
2011-12-26 13:18:01 +01:00
2011-11-14 14:25:09 +01:00
2011-12-23 21:13:09 +01:00
2011-01-07 17:09:39 +01:00
2011-07-05 20:24:20 +02:00
2011-11-14 14:25:09 +01:00
2010-12-01 01:22:55 +01:00
2011-12-13 01:26:53 +01:00
2010-05-06 11:34:04 +05:30
2010-05-06 11:34:04 +05:30
2011-12-15 20:51:35 +01:00
2010-09-24 09:19:57 +02:00
2010-09-21 11:22:52 +02:00
2011-11-08 19:46:41 +01:00
2011-04-11 23:01:51 +02:00
2011-10-05 23:18:22 +02:00
2011-12-23 10:23:41 +01:00
2011-06-27 12:18:44 +02:00
2011-10-23 23:34:30 +02:00