All of lore.kernel.org
 help / color / mirror / Atom feed
From: Colin Watson <cjwatson@ubuntu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Support RAID on virtio devices, and others
Date: Sun, 25 Oct 2009 11:20:07 +0000	[thread overview]
Message-ID: <20091025112007.GI28534@riva.ucam.org> (raw)
In-Reply-To: <4AE41A15.7050504@gmail.com>

On Sun, Oct 25, 2009 at 10:27:49AM +0100, Vladimir 'phcoder' Serbinenko wrote:
> Colin Watson wrote:
> > GRUB only supports RAID on a relatively small number of device types, as
> > implemented by grub_util_getdiskname. I received a bug report noting
> > that this doesn't work for RAID arrays with virtio block devices (often
> > used in kvm) as components. This is difficult to support using the
> > approach taken by grub_util_getdiskname, as virtio devices use dynamic
> > major numbers.
> >
> > find_root_device in util/getroot.c seemed to be exactly what I wanted:
> > it just trawls /dev for the appropriate major and minor numbers. This
> > code is not performance-critical, so that should be fine. 
> 
> Not true. Even in current state grub-mkconfig is taking considerable
> time to complete on my system with numerous kernels. Unless someone
> implements a cache (it can be invalidated after 5 minutes) not to go
> through the same probing procedure on every grub-probe call I object
> against adding any additional delay in probing procedure

But this code is not called from grub-probe; it is only called from
grub-setup (grep for grub_util_raid_getmembers to confirm for yourself).
A grub-mkconfig run shouldn't go anywhere near this.

-- 
Colin Watson                                       [cjwatson@ubuntu.com]



  parent reply	other threads:[~2009-10-25 11:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-25  0:36 [PATCH] Support RAID on virtio devices, and others Colin Watson
2009-10-25  9:27 ` Vladimir 'phcoder' Serbinenko
2009-10-25  9:37   ` Felix Zielcke
2009-10-25 13:13     ` Robert Millan
2009-10-25 11:20   ` Colin Watson [this message]
2009-10-25 13:15   ` 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=20091025112007.GI28534@riva.ucam.org \
    --to=cjwatson@ubuntu.com \
    --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.