All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: grub-probe seems to be having problems
Date: Fri, 09 Mar 2012 01:24:47 +0100	[thread overview]
Message-ID: <4F594DCF.8040102@gmail.com> (raw)
In-Reply-To: <20120308201506.GU14853@caffeine.csclub.uwaterloo.ca>

On 08.03.2012 21:15, Lennart Sorensen wrote:
> /usr/sbin/grub-probe --device-map= --target=abstraction --device /dev/md0
> still fails.
I've found one case when something like you describe can appear, on LVM 
on RAID. Here is the patch but it's unlikely to help in your case.
=== modified file 'grub-core/disk/diskfilter.c'
--- grub-core/disk/diskfilter.c    2012-03-04 00:33:09 +0000
+++ grub-core/disk/diskfilter.c    2012-03-09 00:23:08 +0000
@@ -260,6 +260,8 @@
    struct grub_diskfilter_pv *pv;
    grub_disk_pull_t pull;
    grub_disk_dev_t p;
+  struct grub_diskfilter_vg *vg;
+  struct grub_diskfilter_lv *lv2 = NULL;

    if (!lv->vg->pvs)
      return NULL;
@@ -278,6 +280,19 @@
          pv = pv->next;
      }

+  for (vg = array_list; pv && vg; vg = vg->next)
+    {
+      if (vg->lvs)
+    for (lv2 = vg->lvs; pv && lv2; lv2 = lv2->next)
+      if (!lv2->scanned && lv2->fullname && lv2->became_readable_at)
+        {
+          scan_disk (lv2->fullname);
+          lv2->scanned = 1;
+          while (pv && pv->disk)
+        pv = pv->next;
+        }
+    }
+
    for (pv = lv->vg->pvs; pv; pv = pv->next)
      {
        if (!pv->disk)



-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



      parent reply	other threads:[~2012-03-09  0:24 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-01 19:47 grub-probe seems to be having problems Lennart Sorensen
2012-03-01 20:04 ` Lennart Sorensen
2012-03-01 20:07 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-01 20:15   ` Lennart Sorensen
2012-03-01 20:19     ` Lennart Sorensen
2012-03-03 22:00 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-05 20:07   ` Lennart Sorensen
2012-03-05 23:10     ` Lennart Sorensen
2012-03-08 17:46     ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-08 19:01       ` Lennart Sorensen
2012-03-08 19:14         ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-08 20:15           ` Lennart Sorensen
2012-03-08 23:37             ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-09 14:53               ` Lennart Sorensen
2012-03-09  0:11             ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-09 15:39               ` Lennart Sorensen
2012-03-09 15:43                 ` Lennart Sorensen
2012-03-09 15:47                   ` Lennart Sorensen
2012-03-09 15:48                   ` Vladimir 'φ-coder/phcoder' Serbinenko
     [not found]                     ` <20120309160538.GA14853@caffeine.csclub.uwaterloo.ca>
2012-03-09 18:15                       ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-09 18:39                         ` Lennart Sorensen
2012-03-09 20:37                           ` Lennart Sorensen
2012-03-19 21:28                             ` Lennart Sorensen
2012-03-20 10:28                               ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-20 19:02                                 ` Lennart Sorensen
2012-03-20 19:10                                   ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-03-20 19:13                                     ` Lennart Sorensen
2012-03-20 19:14                                     ` Lennart Sorensen
2012-03-20 19:41                                       ` Lennart Sorensen
2012-03-20 19:11                                   ` Lennart Sorensen
2012-03-22  2:27                                 ` Fwd: " jlcenter
2012-03-22  2:46                                   ` NeilBrown
2012-03-22 17:52                         ` Fwd: " jlcenter
2012-03-09  0:24             ` Vladimir 'φ-coder/phcoder' Serbinenko [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=4F594DCF.8040102@gmail.com \
    --to=phcoder@gmail.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.