[linux-lvm] [PATCH] Bug in pv_read_all_pv.c
Michael Lundkvist
ml at epact.se
Sun Dec 5 23:47:02 UTC 1999
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 at 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;
More information about the linux-lvm
mailing list