From: Marco Gerards <mgerards@xs4all.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] buffered file read
Date: Thu, 31 Jul 2008 21:18:53 +0200 [thread overview]
Message-ID: <87vdylj202.fsf@xs4all.nl> (raw)
In-Reply-To: <ca0f59980807272208h1bdbf756y6e68c84b0b6fa0f6@mail.gmail.com> (bean123ch@gmail.com's message of "Mon, 28 Jul 2008 13:08:26 +0800")
Hi Bean,
Bean <bean123ch@gmail.com> writes:
> I have added a buffer length parameter to grub_buffile_open:
>
> grub_file_t grub_buffile_open (const char *name, int size);
>
> size < 0: Load the whole file.
> size = 0: Use default buffer size (8192 bytes)
> size > 0: Custom buffer size = size
>
> The upper limit is 1m, if size > 1m, we set it to 1m.
>
> 2008-07-28 Bean <bean123ch@gmail.com>
>
> * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
> (bufio_mod_SOURCES): New macro.
> (bufio_mod_CFLAGS): Likewise.
> (bufio_mod_LDFLAGS): Likewise.
>
> * include/grub/bufio.h: New file.
>
> * io/bufio.c: Likewise.
>
> * video/png.c (grub_video_reader_png): Use grub_buffile_open to open
> file.
>
> * video/jpeg.c (grub_video_reader_jpeg): Likewise.
>
> * video/tga.c (grub_video_reader_tga): Likewise.
>
> * font/manager.c (add_font): Likewise.
Please mention it when you include <include/grub/bufio.h>. The same
for when you remove <include/grub/file.h>.
Otherwise it seems good for inclusion :-)
--
Marco
next prev parent reply other threads:[~2008-07-31 19:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-27 17:52 [PATCH] buffered file read Bean
2008-07-27 19:51 ` Colin D Bennett
2008-07-27 20:28 ` Bean
2008-07-27 21:25 ` Robert Millan
2008-07-28 5:08 ` Bean
2008-07-30 3:48 ` Bean
2008-07-30 4:23 ` Colin D Bennett
2008-07-31 19:18 ` Marco Gerards [this message]
2008-07-31 19:20 ` Bean
2008-07-31 20:06 ` Marco Gerards
2008-08-01 4:06 ` Bean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vdylj202.fsf@xs4all.nl \
--to=mgerards@xs4all.nl \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.