All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Lundkvist <ml@epact.se>
To: linux-lvm@msede.com
Subject: [linux-lvm] [PATCH] Bug in pv_read_all_pv.c
Date: 06 Dec 1999 00:47:02 +0100	[thread overview]
Message-ID: <qp90397xxl.fsf@erbium.epact.se> (raw)

Hi!

I had a bit of problem when I ran a kernel without loopback-support
and a PV on /dev/sda1. I turns out that pv_read_all_pv.c gets a bit
confused when it can't open /dev/loop0. The attached patch against
0.7 fixed it for me.


/Micke 
--
Michael Lundkvist
Epact Technology AB
ml@epact.se

--- ../LVM.old/0.7/tools/lib/pv_read_all_pv.c   Mon Jul 12 23:21:26 1999
+++ 0.7/tools/lib/pv_read_all_pv.c      Mon Dec  6 01:23:15 1999
@@ -101,6 +101,7 @@
 #endif
          if ( ( tst = open ( dev_name, O_RDONLY)) == -1) {
             if ( MAJOR ( dir_cache[n].st_rdev) != MD_MAJOR &&
+                MAJOR ( dir_cache[n].st_rdev) != LOOP_MAJOR &&
                  MINOR ( dir_cache[n].st_rdev) % 16 == 0) {
                n += 15;
                continue;

                 reply	other threads:[~1999-12-05 23:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=qp90397xxl.fsf@erbium.epact.se \
    --to=ml@epact.se \
    --cc=linux-lvm@msede.com \
    /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.