1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

add preferred_names to man page.

This commit is contained in:
Alasdair Kergon 2007-04-26 17:14:57 +00:00
parent 4f2f566b06
commit 30b95041de
2 changed files with 8 additions and 0 deletions

View File

@ -155,6 +155,9 @@ static int _compare_paths(const char *path0, const char *path1)
char *s0, *s1; char *s0, *s1;
struct stat stat0, stat1; struct stat stat0, stat1;
/*
* FIXME Better to compare patterns one-at-a-time against all names.
*/
if (_cache.preferred_names_matcher) { if (_cache.preferred_names_matcher) {
m0 = matcher_run(_cache.preferred_names_matcher, path0); m0 = matcher_run(_cache.preferred_names_matcher, path0);
m1 = matcher_run(_cache.preferred_names_matcher, path1); m1 = matcher_run(_cache.preferred_names_matcher, path1);

View File

@ -81,6 +81,11 @@ LVM physical volumes.
Devices in directories outside this hierarchy will be ignored. Devices in directories outside this hierarchy will be ignored.
Defaults to "/dev". Defaults to "/dev".
.IP .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. \fBfilter\fP \(em List of patterns to apply to devices found by a scan.
Patterns are regular expressions delimited by any character and preceded Patterns are regular expressions delimited by any character and preceded
by \fBa\fP (for accept) or \fBr\fP (for reject). The list is traversed by \fBa\fP (for accept) or \fBr\fP (for reject). The list is traversed