All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH,HURD] Fix GNU/Hurd partition number
@ 2009-11-02  2:33 Samuel Thibault
  2009-11-02  2:39 ` [PATCH,HURD] Fix 10_hurd for separate /boot case Samuel Thibault
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Samuel Thibault @ 2009-11-02  2:33 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 75 bytes --]

Hello,

This patch fixes partition number translation on GNU/Hurd.

Samuel

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 614 bytes --]

2009-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>

	* util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
	GNU partition number to get internal grub DOS partition number.

Index: util/hostdisk.c
===================================================================
--- util/hostdisk.c	(révision 2666)
+++ util/hostdisk.c	(copie de travail)
@@ -1057,7 +1057,7 @@
 	n = strtol (p, &q, 10);
 	if (p != q && n != GRUB_LONG_MIN && n != GRUB_LONG_MAX)
 	  {
-	    dos_part = (int) n;
+	    dos_part = (int) n - 1;
 
 	    if (*q >= 'a' && *q <= 'g')
 	      bsd_part = *q - 'a';

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

end of thread, other threads:[~2009-11-21 14:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-02  2:33 [PATCH,HURD] Fix GNU/Hurd partition number Samuel Thibault
2009-11-02  2:39 ` [PATCH,HURD] Fix 10_hurd for separate /boot case Samuel Thibault
2009-11-02 13:55   ` Robert Millan
2009-11-02 13:52 ` [PATCH,HURD] Fix GNU/Hurd partition number Robert Millan
2009-11-02 17:28   ` Samuel Thibault
2009-11-02 19:14     ` Robert Millan
2009-11-21 14:34 ` [PATCH,HURD] Make grub-probe work on GNU/Hurd Samuel Thibault

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.