!48 [sync] PR-47: add check remove_local_disk before transport in pathinfo
From: @openeuler-sync-bot Reviewed-by: @liuzhiqiang26 Signed-off-by: @liuzhiqiang26
This commit is contained in:
commit
12b0ace9f6
@ -161,7 +161,7 @@ index ee3290c..c49848e 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.4
|
Version: 0.8.4
|
||||||
Release: 6
|
Release: 7
|
||||||
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://git.opensvc.com/gitweb.cgi?p=multipath-tools/.git;a=snapshot;h=d4915917655b3d205aa0e339ca13080ed8182d0d;sf=tgz" -o multipath-tools-d491591.tgz
|
# curl "https://git.opensvc.com/gitweb.cgi?p=multipath-tools/.git;a=snapshot;h=d4915917655b3d205aa0e339ca13080ed8182d0d;sf=tgz" -o multipath-tools-d491591.tgz
|
||||||
@ -175,6 +175,12 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 20 2021 lixiaokeng<lixiaokeng@huawei.com> - 0.8.4-7
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:add check remove_local_disk before transport in pathinfo
|
||||||
|
|
||||||
* Mon Dec 14 2020 Lixiaokeng<lixiaokeng@huawei.com> - 0.8.4-6
|
* Mon Dec 14 2020 Lixiaokeng<lixiaokeng@huawei.com> - 0.8.4-6
|
||||||
- Set help packages as kpartx package's install recommends
|
- Set help packages as kpartx package's install recommends
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user