[dm-devel] [PATCH 43/54] libmultipath: adopt_paths(): use find_path_by_devt()
mwilck at suse.com
mwilck at suse.com
Thu Jul 9 10:36:12 UTC 2020
From: Martin Wilck <mwilck at suse.com>
pp->dev_t is the primary identifying property for both dm and udev.
Use it here, too.
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
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
More information about the dm-devel
mailing list