summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2019-04-03 13:06:00 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2019-04-03 13:27:17 +0200
commitbca0a4df9a5c6287bee682b40f4feae6f450729d (patch)
tree53c96f1077fa5eb80835f8a4ad5143168c31aa16
parent2f471f0184aaac7499a33b32efb708aa8153a2af (diff)
downloadlvm2-bca0a4df9a5c6287bee682b40f4feae6f450729d.tar.gz
filter: fix mpath test
Fix bug which leaked into commit dc6dea40331687b8740cc48833f4c7c42a2db1a1, where the testing code got mistakenly commited.
-rw-r--r--lib/filters/filter-mpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filters/filter-mpath.c b/lib/filters/filter-mpath.c
index 466d9c977..53a767c5e 100644
--- a/lib/filters/filter-mpath.c
+++ b/lib/filters/filter-mpath.c
@@ -243,7 +243,7 @@ static int _native_dev_is_mpath(struct dev_filter *f, struct device *dev)
if (look > 0) {
log_debug_devs("%s(%u:%u): already checked as %sbeing mpath.",
parent_name, major, minor, (look > 1) ? "" : "not ");
- return (look > 1) ? 0 : 1;
+ return (look > 1) ? 1 : 0;
}
if (lvm_dm_prefix_check(major, minor, MPATH_PREFIX)) {