From: "Yoshinori K. Okuji" <okuji@enbug.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Set size of partition correctly in grub_disk_open()
Date: Tue, 11 Jul 2006 19:06:30 +0200 [thread overview]
Message-ID: <200607111906.30670.okuji@enbug.org> (raw)
In-Reply-To: <87sllatq7j.wl%jeroen@vrijschrift.org>
On Sunday 09 July 2006 23:37, Jeroen Dekkers wrote:
> Well, if you consider the total_sectors a private variable, and you
> want to have accessor functions for accessing it, then I can
> understand your point a bit, but such things will make the kernel
> bigger and I thought it was a goal to keep it as small as possible...
As small as possible, but as less ugly as possible. I have recognized what
happened with GRUB Legacy which only concentrated on how small. So I do not
want to make the same mistake again.
> I was however thinking about total_sectors as a public variable that
> gives the size of the device being opened. I don't really think a
> partition is an attribute of a disk (all the partitions might be an
> attribute of the disk, but just not a random one). I think it makes
> more sense to consider a partition an object of the same class as a
> disk, given that they have the same semantics.
Having the same semantics does not imply the same structure. I strongly
believe that we should keep the hierarchy of device components in raw data,
so that we can get full information arbitrarily.
> We might have to refactor this code for LVM too, if we consider LVM to
> be an advanced partition table. I haven't really looked into
> implementing LVM yet, but it's more like a partition table than a
> disk. It might make sense to allow people to access it using
> (volumegroup, volumename) syntax, like (hardisk, partitionnumber). You
> can't just add offsets in grub_disk_check_range like you can with DOS
> partitions however. But maybe implementing LVM by adding a new kind of
> disk device might be better.
IMO, LVM should create a virtual disk, as you did for RAID. This fits into my
taste.
> Anyway, do you want me to write a grub_disk_get_size() function?
Yes, please.
Okuji
prev parent reply other threads:[~2006-07-11 17:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-05 20:54 [PATCH] Set size of partition correctly in grub_disk_open() Jeroen Dekkers
2006-07-08 16:07 ` Yoshinori K. Okuji
2006-07-08 20:39 ` Jeroen Dekkers
2006-07-08 21:10 ` Yoshinori K. Okuji
2006-07-08 23:35 ` Jeroen Dekkers
2006-07-09 1:11 ` Yoshinori K. Okuji
2006-07-09 12:01 ` Jeroen Dekkers
2006-07-09 13:29 ` Yoshinori K. Okuji
2006-07-09 14:38 ` Tomáš Ebenlendr
2006-07-09 21:37 ` Jeroen Dekkers
2006-07-11 17:06 ` Yoshinori K. Okuji [this message]
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=200607111906.30670.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.