diff options
author | Milan Broz <mbroz@redhat.com> | 2010-05-13 18:38:38 +0000 |
---|---|---|
committer | Milan Broz <mbroz@redhat.com> | 2010-05-13 18:38:38 +0000 |
commit | 28e2b5b213f1f40784add459a74744b0ff071a91 (patch) | |
tree | 80378854a3be378c54bf0737d8318144fd6a8f4e /lib/filters/filter.c | |
parent | b1d188894ea365a5ef56008499b6ec992755ada6 (diff) | |
download | lvm2-28e2b5b213f1f40784add459a74744b0ff071a91.tar.gz lvm2-28e2b5b213f1f40784add459a74744b0ff071a91.tar.xz lvm2-28e2b5b213f1f40784add459a74744b0ff071a91.zip |
Skip also special lvm devices in scan (if ignore suspended is used).
This should avoid various races between dmeventd on multiple nodes
in cluster where one node already repairing device and another
run full scan and locks the device.
Diffstat (limited to 'lib/filters/filter.c')
-rw-r--r-- | lib/filters/filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/filters/filter.c b/lib/filters/filter.c index b33d099f..2f865477 100644 --- a/lib/filters/filter.c +++ b/lib/filters/filter.c @@ -132,8 +132,8 @@ static int _passes_lvm_type_device_filter(struct dev_filter *f __attribute((unus /* Skip suspended devices */ if (MAJOR(dev->dev) == _device_mapper_major && - ignore_suspended_devices() && !device_is_usable(dev->dev)) { - log_debug("%s: Skipping: Suspended dm device", name); + ignore_suspended_devices() && !device_is_usable(dev)) { + log_debug("%s: Skipping: Suspended or internal dm device", name); return 0; } |