From: Martin Wilck <mwilck@xxxxxxxx> pp->dev_t is the primary identifying property for both dm and udev. Use it here, too. Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- libmultipath/structs_vec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmultipath/structs_vec.c b/libmultipath/structs_vec.c index c7dffb7..55fca9b 100644 --- a/libmultipath/structs_vec.c +++ b/libmultipath/structs_vec.c @@ -75,7 +75,7 @@ int adopt_paths(vector pathvec, struct multipath *mpp) if (!mpp->paths && !(mpp->paths = vector_alloc())) return 1; - if (!find_path_by_dev(mpp->paths, pp->dev) && + if (!find_path_by_devt(mpp->paths, pp->dev_t) && store_path(mpp->paths, pp)) return 1; conf = get_multipath_config(); -- 2.26.2 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel