[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Large image file support for grub-fstest
From: |
Robert Millan |
Subject: |
Re: [PATCH] Large image file support for grub-fstest |
Date: |
Thu, 7 Feb 2008 23:14:42 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Thu, Feb 07, 2008 at 10:05:56PM +0100, Christian Franke wrote:
> The new command "grub-fstest" may not work for large image files or
> /dev/sdX devices on 32-bit platforms.
>
> Legacy C89 functions fseek() and ftell() always use "long" as offset
> type. The attached patch changes this to fseeko() and ftello() which use
> off_t. These are part of POSIX, so new ./configure stuff should be not
> necessary.
>
> Christian
>
> 2008-02-07 Christian Franke <address@hidden>
>
> * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
> instead of fseek and ftell to support large files.
> (grub_hostfs_read): Likewise.
Committed, thanks.
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)