All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Gerards <mgerards@xs4all.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] skip over invalid BSD partitions
Date: Fri, 01 Aug 2008 12:40:17 +0200	[thread overview]
Message-ID: <877ib1hvce.fsf@xs4all.nl> (raw)
In-Reply-To: <1217459965.26275.14.camel@fz-deb.local> (Felix Zielcke's message of "Thu, 31 Jul 2008 01:19:25 +0200")

Felix Zielcke <fzielcke@z-51.de> writes:

> On invalid BSD partitions partmap/pc.c stops with reading the partitons,
> so grub doestn't know anything about the ones behind it.
> Attached patch fixes this and displays also the partition number not
> only the invalid magic it encounters
>
> 2008-07-31  Felix Zielcke  <fzielcke@z-51.de>
>
>         * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
> 	or if there's no space for the disk label and print the partition number on a 
> 	invalid magic

When does this occur?

> Index: partmap/pc.c
> ===================================================================
> --- partmap/pc.c	(Revision 1753)
> +++ partmap/pc.c	(Arbeitskopie)
> @@ -160,9 +160,11 @@
>  		{
>  		  /* Check if the BSD label is within the DOS partition.  */
>  		  if (p.len <= GRUB_PC_PARTITION_BSD_LABEL_SECTOR)
> -		    return grub_error (GRUB_ERR_BAD_PART_TABLE,
> -				       "no space for disk label");
> -
> +		    {
> +		      grub_error (GRUB_ERR_BAD_PART_TABLE,
> +				  "no space for disk label");
> +		      continue;
> +		    }

If you continue as no error occured, why do you throw an error?

--
Marco




  reply	other threads:[~2008-08-01 10:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-30 23:19 [PATCH] skip over invalid BSD partitions Felix Zielcke
2008-08-01 10:40 ` Marco Gerards [this message]
2008-08-01 10:48   ` Felix Zielcke
2008-08-01 13:02   ` Robert Millan
2008-08-05 10:16     ` Marco Gerards
2008-08-05 10:49       ` Felix Zielcke
2008-08-05 11:38         ` Felix Zielcke
2008-08-05 13:10           ` Marco Gerards
2008-08-05 13:15             ` Felix Zielcke
2008-08-05 13:19             ` Felix Zielcke
2008-08-05 15:41               ` Marco Gerards

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=877ib1hvce.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.