!45 add check remove_local_disk before transport in pathinfo
From: @lixiaokeng Reviewed-by: @liuzhiqiang26,@wubo009 Signed-off-by: @wubo009
This commit is contained in:
commit
a356a0e2ad
@ -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;
|
||||||
+ }
|
+ }
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user