31 Commits

Author SHA1 Message Date
kouwenqi
81e889090d 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:44 +08:00
kouwenqi
d51e66c57b 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.
2024-04-02 15:47:41 +08:00
wangzhiqiang
b27f000243 fix coredump in io_err_stat
Signed-off-by: wangzhiqiang <wangzhiqiang95@huawei.com>
(cherry picked from commit 975abdc6a277f92722366f4015a4ced4fe19fe7c)
2023-12-19 18:57:20 +08:00
liubo
cd4d12649f 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>
(cherry picked from commit ee0fed9d9c62936bc10577d2ade7aa93ef601491)
2023-12-05 17:45:07 +08: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
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
wguanghao
23498fa8e4 fix CVE-2022-41974
(cherry picked from commit c2290cffbe2d80e0e06fb4299a221de2871b66e7)
2022-11-07 11:24:00 +08: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
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
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
zhangshaoning
10b524d2c1 fix bogus date
(cherry picked from commit 2732be729a35ceb42cbf2b60d8717e08f5fb7f8d)
2022-06-17 10:55:17 +08: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
Lixiaokeng
04f0c97081 upgrade to 0.8.7
(cherry picked from commit b6f069a7e4035b26382ea297933662a83d9a5e26)
2021-11-29 09:41:59 +08:00
lixiaokeng
26148888e7 use upstream patch instead of huawei patch
(cherry picked from commit 1a3852811e42d478b545d547345fbabce5a33203)
2021-09-24 17:37:36 +08:00
lixiaokeng
ce2f2a4a74 add needsrootforbuild for make test
(cherry picked from commit c71f3b37724c76369ff07b9fe7b4f9ac19f86d10)
2021-09-23 19:51:08 +08:00
lixiaokeng
010fd867e5 add make test
(cherry picked from commit f0007f09c38bd9a3144540bfdcb478c50c9d1d6f)
2021-09-23 18:54:42 +08:00
lixiaokeng
e0208d79d6 fix compile error
(cherry picked from commit 295c7a4d76e21bc97ac5ad2ad0f401813f2a6161)
2021-08-12 10:26:36 +08:00
chenyanpanHW
68c3149d1b
delete -Sgit from %autosetup, and delete BuildRequires git 2021-07-30 23:08:07 +08:00
lixiaokeng
88fd54e96a add check remove_local_disk before transport in pathinfo 2021-07-20 20:28:41 +08:00
lixiaokeng
cf6ba4ae66 update to 0.8.5 2021-02-01 20:29:41 +08:00
lixiaokeng
42ed3aadf9 remove patch that has been fix in 0.8.4 2020-10-27 09:38:27 +08:00
lixiaokeng
b0cb979d78 fix boolean value for TRUE deleted 2020-09-25 10:48:54 +08:00
lixiaokeng
49eb7fcf9f fix use after free in select_pgfailback 2020-09-01 10:27:11 +08:00
lixiaokeng
c9a00d3ee1 update to 0.8.4 2020-07-16 18:51:36 +08:00
ZhiqiangLiu
1fdbf0653f multipath-tools: remove useless readme files
multipath-tools: remove useless readme files

Signed-off-by: Zhiqiang Liu <lzhq28@mail.ustc.edu.cn>
2020-07-05 12:08:37 +08:00
lfl
76ab72eab8 update multipath-tools.spec. 2020-06-30 09:59:12 +08:00
ethan848
a79d9b9b14 backport bugfix from community 2020-05-28 11:19:21 +08:00
eulerstorage
18bb053468 disabled multipathd.service 2020-03-19 15:05:03 +08:00
wangjufeng
2e60c377c7 Seperate kpartx from the maie package
There is no need to default install multipath-tools when install
OS, while some package depend on kpartx tool, so seperate kpartx
from the main package.

signed-off-by: wangjufeng <wangjufeng@huawei.com>
2020-03-09 11:26:56 +08:00
eulerstorage
02e7be3245 add the script mpathconf for it is useful while installing 2020-01-16 17:20:47 +08:00
wangjufeng
7bda37ba55 rename the package 2020-01-10 17:13:17 +08:00