Skip to contentSkip to conversation

add pkzip support for gzio

PATCH y.volta 4 participants 7 messages Aug 12, 2008 – Aug 13, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

y.volta

author
#1 lore raw

i just conveniently make this kind of archive be supported in grub2 - since there is no other addtional work required.

this is a little patch, so if there are mutli-files in this archive, we will failed to decompress it.

As I know, there are many GUI tools(e.g. 7-Zip/Winrar/Winzip) can make the deflated zip file, so, this patch should be useful for those GUI users.

#2 lore raw
Quoted 8 lines · y.volta

i just conveniently make this kind of archive be supported in grub2 - since there is no other addtional work required.

this is a little patch, so if there are mutli-files in this archive, we will failed to decompress it.

As I know, there are many GUI tools(e.g. 7-Zip/Winrar/Winzip) can make the deflated zip file, so, this patch should be useful for those GUI users.

Hi,

As zip support multiple files, it's better to use zipfs, just like cpio/tar.

Also, it's better not to call gzio. I'm thinking about seperating the deflate decompression routine and create a zlib like library, so that the decoder can be used in both gzio, png and zipfs.

Signature · 1 line
Bean
#3 lore raw
Quoted 3 lines · On Tue, 12 Aug 2008 10:45:50 +0800 Bean <[email protected]> wrote:

Also, it's better not to call gzio. I'm thinking about seperating the deflate decompression routine and create a zlib like library, so that the decoder can be used in both gzio, png and zipfs.

Also, pure DEFLATE compression can be used to compress font data in the new font file format. I postponed implementing font compression to wait for DEFLATE support.

Regards,
Colin

#4 lore raw
Quoted 10 lines · Colin D Bennett
Quoted 3 lines · On Tue, 12 Aug 2008 10:45:50 +0800 Bean <[email protected]> wrote:

Also, it's better not to call gzio. I'm thinking about seperating the deflate decompression routine and create a zlib like library, so that the decoder can be used in both gzio, png and zipfs.

Also, pure DEFLATE compression can be used to compress font data in the new font file format. I postponed implementing font compression to wait for DEFLATE support.

Hi Colin,

Actually, I think you can use lzma. The encoder and decoder are both inside /lib now, there is no need to use external library. Besides, LZMA is much better than DEFLATE in compression ratio.

Signature · 1 line
Bean
author
#5 lore raw

Is romfs supported in Grub2

In reply to a message not in the archive

romfs is useful for me, so is there any existing mod or functions existed in current Grub2?

if no, i'd like to add this mod to Grub2 from previous Grub0.97 patch.

BTW. bean, did you have any plan to translate some grub4dos' functions to grub2 in recentlly?

y.volta
-------------------------

#6 lore raw

Re: Is romfs supported in Grub2

Quoted 7 lines · y.volta

romfs is useful for me, so is there any existing mod or functions existed in current Grub2?

if no, i'd like to add this mod to Grub2 from previous Grub0.97 patch.

BTW. bean, did you have any plan to translate some grub4dos' functions to grub2 in recentlly?

Hi,

If you mean the "map" command, that may need to wait for a while. But I'm about to implement the password verification for grub2.

Signature · 1 line
Bean
#7 lore raw

Re: Is romfs supported in Grub2

In reply to y.volta
Quoted 4 lines · y.volta

romfs is useful for me, so is there any existing mod or functions existed in current Grub2?

if no, i'd like to add this mod to Grub2 from previous Grub0.97 patch.

Who owns the copyright?

BTW, GRUB 2 and GRUB Legacy filesystem code are *VERY* different.

--
Marco