[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/2] Disable unsupported grub_util_get_fd_sectors in geli on
From: |
Vladimir 'φ-coder/phcoder' Serbinenko |
Subject: |
Re: [PATCH 2/2] Disable unsupported grub_util_get_fd_sectors in geli on MINGW32 |
Date: |
Thu, 29 Sep 2011 10:42:08 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Iceowl/1.0b2 Icedove/3.1.13 |
Rejected. Better a compilation error than an eratic behaviour on runtime.
On 21.09.2011 23:29, Mario Limonciello wrote:
> === modified file 'ChangeLog'
> --- ChangeLog 2011-09-21 21:00:59 +0000
> +++ ChangeLog 2011-09-21 21:18:21 +0000
> @@ -6,6 +6,8 @@
> Windows CreateFile calls.
> * Undefine GRUB_UTIL in grub-core/lib/crypto.c for MINGW32 as
> termios is not supported.
> + * Disable unsupported grub_util_get_fd_sectors in geli on
> + MINGW32.
>
> 2011-09-17 Grégoire Sutre <address@hidden>
>
>
> === modified file 'grub-core/disk/geli.c'
> --- grub-core/disk/geli.c 2011-04-25 12:52:07 +0000
> +++ grub-core/disk/geli.c 2011-09-21 21:18:21 +0000
> @@ -189,8 +189,10 @@
> if (fd < 0)
> return NULL;
>
> +#if !defined(__MINGW32__)
> s = grub_util_get_fd_sectors (fd, &log_secsize);
> grub_util_fd_seek (fd, dev, (s << log_secsize) - 512);
> +#endif
>
> uuid = xmalloc (GRUB_MD_SHA256->mdlen * 2 + 1);
> if (grub_util_fd_read (fd, (void *) &hdr, 512) < 0)
>
>
>
> _______________________________________________
> Grub-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
signature.asc
Description: OpenPGP digital signature