From: Michael Marxmeier <mike@msede.com>
To: Heinz Mauelshagen <mge@ez-darmstadt.telekom.de>, linux-lvm@msede.com
Subject: [linux-lvm] proposed change in lvm_dir_cache.c
Date: Sun, 27 Feb 2000 21:03:50 +0100 [thread overview]
Message-ID: <38B98326.1D291C28@msede.com> (raw)
The patch below will work around a problem with the LVM scan code.
If no valid block devices could be found using /proc/partitions
the LVM scan code will fallback to scan /dev.
This happened to me when compiling devfs in the kernel without
mounting it in /dev (by using the devfs=nomount option).
In this case /proc/partitions returns block device names
relative to the devfs mount point.
Michael
--- 0.8final/tools/lib/lvm_dir_cache.c.orig Sun Feb 27 20:46:41
2000
+++ 0.8final/tools/lib/lvm_dir_cache.c Sun Feb 27 20:47:23 2000
@@ -91,7 +91,8 @@
}
}
fclose ( proc);
- } else {
+ }
+ if(!cache_size) {
for ( d = 0; devdir[d] != NULL; d++) {
dirname = devdir[d];
#ifdef DEBUG
--
Michael Marxmeier Marxmeier Software AG
E-Mail: mike@msede.com Besenbruchstrasse 9
Phone : +49 202 2431440 42285 Wuppertal, Germany
Fax : +49 202 2431420 http://www.msede.com/
reply other threads:[~2000-02-27 20:03 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=38B98326.1D291C28@msede.com \
--to=mike@msede.com \
--cc=linux-lvm@msede.com \
--cc=mge@ez-darmstadt.telekom.de \
/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.