1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-12-08 08:23:50 +03:00

filters: check for mpath before opening devs

Split out the partitioned device filter that needs to open the device
and move the multipath filter in front of it.

When a device is multipathed, sending I/O to the underlying paths may
cause problems, the most obvious being I/O errors visible to lvm if a
path is down.

Revert the incorrect <backtrace> messages added when a device doesn't
pass a filter.

Log each filter initialisation to show sequence.

Avoid duplicate 'Using $device' debug messages.
This commit is contained in:
Alasdair G Kergon
2013-08-13 23:26:58 +01:00
parent 0da72743ca
commit 80bcdb93ff
21 changed files with 159 additions and 227 deletions

View File

@@ -14,7 +14,7 @@
*/
#include "lib.h"
#include "filter-regex.h"
#include "filter.h"
struct rfilter {
struct dm_pool *mem;
@@ -212,6 +212,9 @@ struct dev_filter *regex_filter_create(const struct dm_config_value *patterns)
f->destroy = _regex_destroy;
f->use_count = 0;
f->private = rf;
log_debug_devs("Regex filter initialised.");
return f;
bad: