* [linux-lvm] [PATCH] Bug in pv_read_all_pv.c
@ 1999-12-05 23:47 Michael Lundkvist
0 siblings, 0 replies; only message in thread
From: Michael Lundkvist @ 1999-12-05 23:47 UTC (permalink / raw)
To: linux-lvm
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-12-05 23:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-05 23:47 [linux-lvm] [PATCH] Bug in pv_read_all_pv.c Michael Lundkvist
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).