1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-07-24 00:58:57 +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-persistent.h"
#include "filter.h"
#include "config.h"
#include "lvm-file.h"
#include "activate.h"
@ -366,6 +366,8 @@ struct dev_filter *persistent_filter_create(struct dev_types *dt,
f->wipe = _persistent_filter_wipe;
f->dump = _persistent_filter_dump;
log_debug_devs("Persistent filter initialised.");
return f;
bad: