add check remove_local_disk before transport in pathinfo

This commit is contained in:
lixiaokeng 2021-07-20 16:50:19 +08:00
parent d39e9994fc
commit 88fd54e96a
2 changed files with 9 additions and 3 deletions

View File

@ -166,7 +166,7 @@ index c2e1754..24e9b50 100644
return rc; return rc;
+ /* free local device */ + /* 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); + condlog(3, "%s is a local device", pp->dev);
+ return 0; + return 0;
+ } + }

View File

@ -1,8 +1,8 @@
Name: multipath-tools Name: multipath-tools
Version: 0.8.5 Version: 0.8.5
Release: 1 Release: 2
Summary: Tools to manage multipath devices with the device-mapper 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/ 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 # 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 %changelog
* Tue Jul 20 2021 lixiaokeng<lixiaokeng@huawei.com> - 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<lixiaokeng@huawei.com> - 0.8.5-1 * Sat Jan 30 2020 lixiaokeng<lixiaokeng@huawei.com> - 0.8.5-1
- update to 0.8.5 - update to 0.8.5