From 88fd54e96a339c007d53a5746c2bfd7e9e2ea95e Mon Sep 17 00:00:00 2001 From: lixiaokeng Date: Tue, 20 Jul 2021 16:50:19 +0800 Subject: [PATCH] add check remove_local_disk before transport in pathinfo --- 0015-bugfix-RH-remove-local-disk-from-pathvec.patch | 2 +- multipath-tools.spec | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/0015-bugfix-RH-remove-local-disk-from-pathvec.patch b/0015-bugfix-RH-remove-local-disk-from-pathvec.patch index 2510c36..c89fc23 100644 --- a/0015-bugfix-RH-remove-local-disk-from-pathvec.patch +++ b/0015-bugfix-RH-remove-local-disk-from-pathvec.patch @@ -166,7 +166,7 @@ index c2e1754..24e9b50 100644 return rc; + /* free local device */ -+ if (transport(pp->sg_id.host_no)) { ++ if (get_should_remove_local_disk() && transport(pp->sg_id.host_no)) { + condlog(3, "%s is a local device", pp->dev); + return 0; + } diff --git a/multipath-tools.spec b/multipath-tools.spec index e40d8ba..f02b384 100644 --- a/multipath-tools.spec +++ b/multipath-tools.spec @@ -1,8 +1,8 @@ Name: multipath-tools Version: 0.8.5 -Release: 1 +Release: 2 Summary: Tools to manage multipath devices with the device-mapper -License: GPLv2-or-later and LGPLv2+ +License: GPL-2.0-or-later and LGPL-2.0-only URL: http://christophe.varoqui.free.fr/ # curl https://github.com/opensvc/multipath-tools/archive/0.8.5.tar.gz -o multipath-tools-0.8.5.tgz @@ -163,6 +163,12 @@ fi %changelog +* Tue Jul 20 2021 lixiaokeng - 0.8.5-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:add check remove_local_disk before transport in pathinfo + * Sat Jan 30 2020 lixiaokeng - 0.8.5-1 - update to 0.8.5 -- Gitee