From bca0a4df9a5c6287bee682b40f4feae6f450729d Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 3 Apr 2019 13:06:00 +0200 Subject: [PATCH] filter: fix mpath test Fix bug which leaked into commit dc6dea40331687b8740cc48833f4c7c42a2db1a1, where the testing code got mistakenly commited. --- lib/filters/filter-mpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {