Subject: [linux-lvm] [PATCH] Bug in pv_read_all_pv.c Mime-Version: 1.0 (generated by tm-edit 7.108) From: Michael Lundkvist Date: 06 Dec 1999 00:47:02 +0100 Message-ID: Sender: owner-linux-lvm Errors-To: owner-linux-lvm List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-lvm@msede.com 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;