"preferred_path" contains always "0" or "1". Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- libmultipath/discovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c index 7f983a6..3fd79a3 100644 --- a/libmultipath/discovery.c +++ b/libmultipath/discovery.c @@ -520,7 +520,7 @@ sysfs_get_asymmetric_access_state(struct path *pp, char *buff, int buflen) /* Parse error, ignore */ return 0; } - return preferred; + return !!preferred; } static void -- 2.19.2 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel