From: agk@sourceware.org <agk@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2 lib/device/dev-cache.c man/lvm.conf.5
Date: 26 Apr 2007 17:14:58 -0000 [thread overview]
Message-ID: <20070426171458.5977.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2007-04-26 18:14:57
Modified files:
lib/device : dev-cache.c
man : lvm.conf.5
Log message:
add preferred_names to man page.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/device/dev-cache.c.diff?cvsroot=lvm2&r1=1.46&r2=1.47
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/man/lvm.conf.5.diff?cvsroot=lvm2&r1=1.18&r2=1.19
--- LVM2/lib/device/dev-cache.c 2007/04/26 16:44:58 1.46
+++ LVM2/lib/device/dev-cache.c 2007/04/26 17:14:57 1.47
@@ -155,6 +155,9 @@
char *s0, *s1;
struct stat stat0, stat1;
+ /*
+ * FIXME Better to compare patterns one-at-a-time against all names.
+ */
if (_cache.preferred_names_matcher) {
m0 = matcher_run(_cache.preferred_names_matcher, path0);
m1 = matcher_run(_cache.preferred_names_matcher, path1);
--- LVM2/man/lvm.conf.5 2007/02/28 18:27:13 1.18
+++ LVM2/man/lvm.conf.5 2007/04/26 17:14:57 1.19
@@ -81,6 +81,11 @@
Devices in directories outside this hierarchy will be ignored.
Defaults to "/dev".
.IP
+\fBpreferred_names\fP \(em List of patterns compared in turn against
+all the pathnames referencing the same device in in the scanned directories.
+The pathname that matches the earliest pattern in the list is the
+one used in any output.
+.IP
\fBfilter\fP \(em List of patterns to apply to devices found by a scan.
Patterns are regular expressions delimited by any character and preceded
by \fBa\fP (for accept) or \fBr\fP (for reject). The list is traversed
reply other threads:[~2007-04-26 17:14 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=20070426171458.5977.qmail@sourceware.org \
--to=agk@sourceware.org \
--cc=lvm-devel@redhat.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.