All of lore.kernel.org
 help / color / mirror / Atom feed
* Transparent decompression with file system filter
@ 2007-08-03 16:06 Bean
  2007-11-10 17:33 ` Marco Gerards
  0 siblings, 1 reply; 25+ messages in thread
From: Bean @ 2007-08-03 16:06 UTC (permalink / raw)
  To: The development of GRUB 2

Currently, grub2 support gziped file with the gzio module. To open a
gziped file,
you have to use a special function grub_gzfile_open, I think it could
be better if
grub_file_open could handle compressed file transparently.

The implementation is actually quite simple. We define a file system
filter interface,
modules can use it to register its filter. Then, as the last step of
opening a file, we
can the filters. If a filter recognized the file format, it will
create a new file object
to represent the file. If none of the filter want to handle this file,
the orginal file
object is used.

We can add a new function grub_file_rawopen, which will always skip
the filters. We can
also use variable to control behavior, for example, if nocomp=1, no
filter is called.

The advantage of this scheme is that it's extensible. For example. if
we want to support
bzip2 format, we just need to add a new decompression filter.

-- 
Bean



^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2008-01-13 20:53 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-03 16:06 Transparent decompression with file system filter Bean
2007-11-10 17:33 ` Marco Gerards
2007-11-14  6:34   ` Bean
2007-11-14 19:29     ` Vesa Jääskeläinen
2007-11-15 10:53       ` Jan C. Kleinsorge
2007-11-18 11:40       ` Marco Gerards
2007-11-19  8:02         ` Bean
2007-11-19 10:23           ` Bean
2007-12-31 16:59             ` Bean
2007-12-31 18:40               ` Robert Millan
2007-12-31 18:54                 ` Bean
2008-01-02 23:19               ` Yoshinori K. Okuji
2008-01-03  8:49                 ` Bean
2008-01-03 11:35                   ` Robert Millan
2008-01-03 12:53                     ` Bean
2008-01-03 13:20                       ` Robert Millan
2008-01-03 15:53                   ` Vesa Jääskeläinen
2008-01-05  1:29                     ` Yoshinori K. Okuji
2008-01-05  6:30                       ` Bean
2008-01-05 10:39                         ` Yoshinori K. Okuji
2008-01-05 11:04                           ` Bean
2008-01-13  7:38                             ` Bean
2008-01-13 19:51                               ` Yoshinori K. Okuji
2008-01-13 20:16                                 ` Bean
2008-01-13 20:53                                   ` Yoshinori K. Okuji

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.