125 Commits

Author SHA1 Message Date
openeuler-ci-bot
afb190ad8d
!219 [sync] PR-213: sync patch multipath-display-the-correct-configuration-when-dum.patch with community
From: @openeuler-sync-bot 
Reviewed-by: @swf504 
Signed-off-by: @swf504
2024-09-10 01:48:11 +00:00
kouwenqi
c69eae4a0c sync patch32 with community
(cherry picked from commit 652302d528ae019d0bb68842561445415da6368d)
2024-08-31 09:38:51 +08:00
openeuler-ci-bot
6ac1654ed0
!209 [sync] PR-205: 【轻量级PR】: Added 'Buildarch: noarch'to the help subpaackage
From: @openeuler-sync-bot 
Reviewed-by: @swf504 
Signed-off-by: @swf504
2024-08-31 01:27:52 +00:00
zhangjiaming
46e4753c6c Added 'Buildarch: noarch' to the help subpackage
(cherry picked from commit e6808228cb93b7e957b225dca632e66e95c3339f)
2024-08-27 09:52:49 +08:00
openeuler-ci-bot
2e152876b1
!203 [sync] PR-201: libmultipath: limit paths that can get wwid from environment
From: @openeuler-sync-bot 
Reviewed-by: @swf504 
Signed-off-by: @swf504
2024-08-12 12:40:36 +00:00
Kou Wenqi
3e26c4a6c1 libmultipath: limit paths that can get wwid from environment
Currently, whenever getting the uid_attribute from the udev database
fails, multipath will try to get it from the environment variables. This
normally isn't a problem, since either multipath -u is getting called
from a uevent and the environment will have the correct value in that
variable, or something else is being run and that variable won't be set.
However, when find_multipaths is configured to "smart", this causes
problems. For maybe devices, multipath needs to get the WWIDs of all the
other block devices, to see if they match the maybe device wwid.  If one
of those devices doesn't have uid_attribute set in its udev database,
multipath will fall back to checking the environment for it, and it will
find that variable set to the WWID of the maybe device that this uevent
is for.  This means that all devices with no WWID will end up appearing
to have the same WWID as the maybe device, causing multipath to
incorrectly claim it.

(cherry picked from commit 07e08e42400b8c37b2dacdc63e8ea4c737cc11b3)
2024-08-12 16:30:50 +08:00
openeuler-ci-bot
3e5b60edaa
!198 [sync] PR-195: multipath: display the correct configuration when dumpping config
From: @openeuler-sync-bot 
Reviewed-by: @swf504 
Signed-off-by: @swf504
2024-08-07 09:00:23 +00:00
Kou Wenqi
fbfe7731b9 multipath: display the correct configuration when dumpping config
"multipath -t" and "multipath -T" might show the wrong
multipathd configuration items "retrigger_tries" and
"force_sync". Make sure they don't.

(cherry picked from commit df7cdf4f6eba3ba27093a67bad278a9ec173899f)
2024-08-07 10:28:52 +08:00
openeuler-ci-bot
b5450f6239
!191 [sync] PR-187: multipath.conf.5: fix the description of prio_args for path_latency prio
From: @openeuler-sync-bot 
Reviewed-by: @swf504 
Signed-off-by: @swf504
2024-08-05 02:44:29 +00:00
Kou Wenqi
983f781b4c multipath.conf.5: fix the description of prio_args for path_latency prio
This aligns the description of prio_args for path_latency prio and
the actual code.

(cherry picked from commit a91d47c1e822753fe9d07b469c16ec55f39929cb)
2024-08-05 10:09:55 +08:00
openeuler-ci-bot
be4f1f38f6
!184 [sync] PR-181: multipath.conf.5: fix documentation for find_multipaths
From: @openeuler-sync-bot 
Reviewed-by: @swf504 
Signed-off-by: @swf504
2024-08-01 12:53:39 +00:00
Kou Wenqi
cda469cb1a multipath.conf.5: fix documentation for find_multipaths
(cherry picked from commit a88eba0212d29220f3e83650c6e52cd14cc5bc71)
2024-08-01 11:33:27 +08:00
openeuler-ci-bot
bf7b21a8d8
!175 [sync] PR-171: libmultipath: sysfs_set_scsi_tmo: do nothing for ACT_DRY_RUN
From: @openeuler-sync-bot 
Reviewed-by: @swf504 
Signed-off-by: @swf504
2024-06-18 09:05:03 +00:00
kouwenqi
538d188f85 libmultipath: sysfs_set_scsi_tmo: do nothing for ACT_DRY_RUN
"multipath -d" might change sysfs timeouts of SCSI devices.
Make sure it doesn't.

(cherry picked from commit 7a9bf7333900467f4ce59a9baf8578b73a74a89e)
2024-06-18 16:07:41 +08:00
openeuler-ci-bot
66d0c70ba1
!160 [sync] PR-157: multipathd.socket: add missing conditions from service unit
From: @openeuler-sync-bot 
Reviewed-by: @swf504 
Signed-off-by: @swf504
2024-05-04 00:06:13 +00:00
kouwenqi
ddf4b67a85 multipathd.socket: add missing conditions from service unit
This aligns 'multipathd' socket and service units, by adding the
start conditions that are set on the service but not on the socket.
It should help avoiding situations where the socket unit ends up
marked as failed after hitting its retry-limit.

(cherry picked from commit d51e66c57b798f4f22bde28d72f4c11afd474f7e)
2024-04-29 10:50:15 +08:00
openeuler-ci-bot
39e116f5ce
!150 [sync] PR-142: fix coredump in io_err_stat
From: @openeuler-sync-bot 
Reviewed-by: @swf504 
Signed-off-by: @swf504
2023-12-19 13:11:11 +00:00
wangzhiqiang
7938f3053a fix coredump in io_err_stat
Signed-off-by: wangzhiqiang <wangzhiqiang95@huawei.com>
(cherry picked from commit 975abdc6a277f92722366f4015a4ced4fe19fe7c)
2023-12-19 18:57:29 +08:00
openeuler-ci-bot
5c3211f63a
!135 backport bugfix patch from upstream
From: @liubo254 
Reviewed-by: @lixiaokeng, @swf504, @foolstrong 
Signed-off-by: @swf504
2023-12-05 09:44:59 +00:00
liubo
ee0fed9d9c backport patches from community
backport two patches from community.
1. libmultipath: use directio checker for LIO target
2. multipathd: make pr registration consistent

Signed-off-by: liubo <liubo254@huawei.com>
2023-11-16 10:13:32 +08:00
openeuler-ci-bot
a1c752dfc0
!133 [sync] PR-131: multipath-tools: set Source0 to URL link
From: @openeuler-sync-bot 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-11-29 14:25:57 +00:00
Zhiqiang Liu
11ab008a9f multipath-tools: set Source0 to URL link
Fix issue:https://gitee.com/src-openeuler/multipath-tools/issues/I639ZP

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
(cherry picked from commit 4be07bcdde097f22f56a0e7ecb7a4c98c5048600)
2022-11-29 20:11:10 +08:00
openeuler-ci-bot
a4c443035b
!127 [sync] PR-125: 修复了CVE-2022-41974导致multipathd参数顺序修改以及mpathpersist命令执行失败的问题
From: @openeuler-sync-bot 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-11-28 12:35:35 +00:00
gqmiao
cad5af27f6 CVE-2022-41974 modify the parameter sequence of mpathpersist
and multipathd. It may cause command multipathd and mpathpersist
execute error.

Signed-off-by: gqmiao <miaoguanqin@huawei.com>
(cherry picked from commit 1945932368cc168091982f81e46d1a3e00dc8b65)
2022-11-28 20:16:09 +08:00
openeuler-ci-bot
6a4a195a08
!121 [sync] PR-117: fix CVE-2022-41974
From: @openeuler-sync-bot 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-11-07 03:33:26 +00:00
wguanghao
23498fa8e4 fix CVE-2022-41974
(cherry picked from commit c2290cffbe2d80e0e06fb4299a221de2871b66e7)
2022-11-07 11:24:00 +08:00
openeuler-ci-bot
63bf4ba03f
!115 [sync] PR-113: 修复CVE-2022-41973
From: @openeuler-sync-bot 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-10-31 03:23:44 +00:00
Kemeng Shi
126785d319 multipath-tools: use /run instead of /dev/shm
/dev/shm may have unsafe permissions. Use /run instead.
Use systemd's tmpfiles.d mechanism to create /run/multipath
early during boot.

For backward compatibilty, make the runtime directory configurable
via the "runtimedir" make variable.

Signed-off-by: Kemeng Shi <shikemeng@huawei.com>
(cherry picked from commit ece61bee4ca9432cc712ea832637d39118074750)
2022-10-31 11:06:17 +08:00
openeuler-ci-bot
f2a7c27028
!110 [sync] PR-108: multipath fix exit status of multipath -T
From: @openeuler-sync-bot 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-10-17 09:07:11 +00:00
xueyamao
eade3f158a multipath fix exit status of multipath -T
We must set the return value in configure().

Signed-off-by: xueyamao <xueyamao@kylinos.cn>
(cherry picked from commit d3b45029abc80a0eabd77b760a254f24a95e76fd)
2022-10-17 16:50:52 +08:00
openeuler-ci-bot
f4fa167cd2
!106 [sync] PR-104: fix multipath return failure on an invalid remove command
From: @openeuler-sync-bot 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-09-01 02:07:03 +00:00
xueyamao
586ecad17d fix multipath return failure on an invalid remove command
When "multipath -f" is run on a device that doesn't exist or isn't a
multipath device, the command will not remove any device, but it will
still return success.

Signed-off-by: xueyamao <xueyamao@kylinos.cn>
(cherry picked from commit b68fc8b7d9312d204b04cf1af290f50dd6a425fa)
2022-09-01 09:40:08 +08:00
openeuler-ci-bot
b2d270b89a
!103 [sync] PR-100: 【轻量级 PR】:fix bogus date
From: @openeuler-sync-bot 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-06-17 06:44:48 +00:00
zhangshaoning
10b524d2c1 fix bogus date
(cherry picked from commit 2732be729a35ceb42cbf2b60d8717e08f5fb7f8d)
2022-06-17 10:55:17 +08:00
openeuler-ci-bot
1cd904351a
!89 [sync] PR-86: 当使能remove_local_path时,不在nvme设备上创建dm设备。
From: @openeuler-sync-bot 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-03-08 12:24:20 +00:00
Lixiaokeng
fcded6cba2 don't create nvme multipath device when enable remove_local_path
(cherry picked from commit 2d7bee4f06a77751da82f7c66906cbed00284e05)
2022-03-08 20:00:53 +08:00
openeuler-ci-bot
3ab342d74a !85 [sync] PR-79: 升级到0.8.7
From: @openeuler-sync-bot
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
2021-11-29 02:43:02 +00:00
Lixiaokeng
04f0c97081 upgrade to 0.8.7
(cherry picked from commit b6f069a7e4035b26382ea297933662a83d9a5e26)
2021-11-29 09:41:59 +08:00
openeuler-ci-bot
ebc02a8e62 !76 [sync] PR-75: 使用上游社区补丁替代华为补丁
From: @openeuler-sync-bot
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
2021-09-26 01:19:30 +00:00
lixiaokeng
26148888e7 use upstream patch instead of huawei patch
(cherry picked from commit 1a3852811e42d478b545d547345fbabce5a33203)
2021-09-24 17:37:36 +08:00
openeuler-ci-bot
6620a42de9 !74 [sync] PR-69: 给make test添加root权限
From: @openeuler-sync-bot
Reviewed-by: @wubo009
Signed-off-by: @wubo009
2021-09-24 09:36:51 +00:00
lixiaokeng
ce2f2a4a74 add needsrootforbuild for make test
(cherry picked from commit c71f3b37724c76369ff07b9fe7b4f9ac19f86d10)
2021-09-23 19:51:08 +08:00
openeuler-ci-bot
c0d3f52431 !73 [sync] PR-59: add make test
From: @openeuler-sync-bot
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
2021-09-23 11:02:16 +00:00
lixiaokeng
010fd867e5 add make test
(cherry picked from commit f0007f09c38bd9a3144540bfdcb478c50c9d1d6f)
2021-09-23 18:54:42 +08:00
openeuler-ci-bot
ab2218bc22 !58 [sync] PR-57: 修复glibc升级导致multipath-tools编译失败
From: @openeuler-sync-bot
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
2021-08-13 02:32:25 +00:00
lixiaokeng
e0208d79d6 fix compile error
(cherry picked from commit 295c7a4d76e21bc97ac5ad2ad0f401813f2a6161)
2021-08-12 10:26:36 +08:00
openeuler-ci-bot
3699df649c !50 multipath-tools delete -Sgit from %autosetup, and delete BuildRequires git
From: @chenyanpanHW
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
2021-07-31 01:31:06 +00:00
chenyanpanHW
68c3149d1b
delete -Sgit from %autosetup, and delete BuildRequires git 2021-07-30 23:08:07 +08:00
openeuler-ci-bot
a356a0e2ad !45 add check remove_local_disk before transport in pathinfo
From: @lixiaokeng
Reviewed-by: @liuzhiqiang26,@wubo009
Signed-off-by: @wubo009
2021-07-20 12:59:23 +00:00
lixiaokeng
88fd54e96a add check remove_local_disk before transport in pathinfo 2021-07-20 20:28:41 +08:00