From: "Yoshinori K. Okuji" <okuji@enbug.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: GPT on PC/BIOS computers
Date: Mon, 7 May 2007 21:23:54 +0200 [thread overview]
Message-ID: <200705072123.54871.okuji@enbug.org> (raw)
In-Reply-To: <20070507091745.GA3628@aragorn>
On Monday 07 May 2007 11:17, Robert Millan wrote:
> On Sat, May 05, 2007 at 03:21:38PM +0200, Marco Gerards wrote:
> > > I've looked into this, but I need some advice. What's the simplest way
> > > to obtain the corresponding grub_partition_t structure for a partition
> > > by knowing its drive name?
> >
> > You can use grub_partition_iterate. Or open the disk and use
> > ->partition. You can read the name of the partitioning scheme. The
> > is also done in grub-setup.c, in the code you altered.
>
> Patch attached. Let me know if it's correct (I had my doubts about
> hardcoding the the whole partition_map list in grub-probe.c, but then again
> I think safety is more important).
The naming is not good. In GRUB, we call "partmap" but not "ptable".
Okuji
next prev parent reply other threads:[~2007-05-07 19:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-01 19:18 GPT on PC/BIOS computers Robert Millan
2007-05-03 13:33 ` Javier Rodríguez Sánchez
2007-05-03 14:17 ` Robert Millan
2007-05-03 14:27 ` Javier Rodríguez Sánchez
2007-05-04 20:32 ` Javier Rodríguez Sánchez
2007-05-04 22:15 ` Robert Millan
2007-05-05 13:13 ` Marco Gerards
2007-05-06 7:02 ` Javier Rodríguez Sánchez
2007-05-04 8:40 ` Marco Gerards
2007-05-04 23:05 ` Robert Millan
2007-05-05 13:21 ` Marco Gerards
2007-05-07 9:17 ` Robert Millan
2007-05-07 19:23 ` Yoshinori K. Okuji [this message]
2007-05-07 19:58 ` Robert Millan
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=200705072123.54871.okuji@enbug.org \
--to=okuji@enbug.org \
--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.