37 Commits

Author SHA1 Message Date
chenrenhui
d813f85fec config: check for 0 from read
When the read returns 0, it could mean the file
was trimmed or some other type of problem.
In this case abort the potentially endless loop.

(cherry picked from commit 071845e9dda29eb7862dba16363711acafb812ca)
2025-03-31 10:10:35 +08:00
yanshuai01
eccdf8f06e Avoid unowned %%{python3_sitelib}/lvmdbusd directory 2024-11-14 17:07:17 +08:00
fandeyuan
903e05c02c fix function undeclared in libdm-common.c and dev-cache.c,support clang
(cherry picked from commit 570d83d90469f2cdc622e207c782ee6165562456)
2024-11-07 18:01:06 +08:00
yanshuai01
5ab6305ae8 dmstats: Fix memory leak on error path 2024-10-24 10:02:45 +08:00
peng.zou
03b3857d00 lvm2-lockd: add support for ppc64le
(cherry picked from commit 0b78310a7761f5dfe02ba7741f71f82588058a45)
2024-03-04 20:20:53 +08:00
wangzhiqiang
5910fa5ab2 dm-event: release buffer on dm_event_get_version
Signed-off-by: wangzhiqiang <wangzhiqiang95@huawei.com>
(cherry picked from commit 57fb0f79ef77b7ffc7ddcd73149651fc1b53cd31)
2023-12-19 14:26:17 +08:00
wuyifeng
7b3ffa45a7 fix an double free in the error path from _stats_creat_group
Signed-off-by: wuyifeng <wuyifeng10@huawei.com>
(cherry picked from commit d66f8e3a94b9521073e8901f761f254db033fd1e)
2023-12-18 10:22:28 +08:00
wangzhiqiang
9a108ba8d3 fix an issue for the symlink of the by-uuid file lost
Signed-off-by: wangzhiqiang <wangzhiqiang95@huawei.com>
2023-11-14 17:09:34 +08:00
wangzhiqiang
3168d5a200 fix some bugs
Signed-off-by: wangzhiqiang <wangzhiqiang95@huawei.com>
(cherry picked from commit 639fa142c7524c62f00d5cc76beff769212d969c)
2023-09-05 20:06:38 +08:00
wangzhiqiang
19570b92c6 backport some bugfix patches from upstream
Signed-off-by: wangzhiqiang <wangzhiqiang95@huawei.com>
(cherry picked from commit d81775f21f4c3229e5184787999c449b032b5e95)
2023-06-25 13:14:15 +08:00
wangzhiqiang
ed40e0ee4b fix fail to create lv and pvid file leakage
Signed-off-by: wangzhiqiang <wangzhiqiang95@huawei.com>
(cherry picked from commit 6f33124912129016c7cb1fc847142b64c56ce0f8)
2023-06-09 16:28:25 +08:00
volcanodragon
8f174c9a91 backport some bugfix patches from upstream
(cherry picked from commit 21096c26e621dfa9d4ca0cafc016a2f1c7df6bf0)
2022-12-19 16:30:27 +08:00
wzx
c133929a98 Add sw64 architecture
Signed-off-by: wzx <wuzx1226@qq.com>
(cherry picked from commit af0be30dc080efe5563d8eeaaddd532499a67720)
2022-11-09 15:31:42 +08:00
wguanghao
a5efe23b66 fix error of epoch version
(cherry picked from commit c1a781465769042e67ac76fc49aa3ce5eeed16c7)
2022-09-05 16:21:44 +08:00
wangpeng
6348bb7963
修正changelog中的错误日期 2022-05-11 05:48:33 +00:00
Zhiqiang Liu
62282b62fe lvm: code reduce cyclomatic complexity
enhance code and reduce cyclomatic complexity

Fix issue: https://gitee.com/src-openeuler/lvm2/issues/I4RZQQ

Signed-off-by:lixiaokeng <lixiaokeng@huawei.com>
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
(cherry picked from commit 84f4c03aab3e0af6e75142f1d9332eb5e9b3fd52)
2022-01-30 16:24:29 +08:00
Zhiqiang Liu
eef279cab4 dev_name() determine whether the dev->aliases linked list is
empty before obtaining the dev name

If dev->aliases linked list is empty, then directly obtain the str
address of dm_str_list saved in dev_aliases.n, an unknown address
will be returned, which may cause segfault.

So we need to judge whether the dev->aliases linked list is empty before
getting it to avoid returning unknown address.

Fix issue: https://gitee.com/src-openeuler/lvm2/issues/I4RZP9

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
(cherry picked from commit 100c4fb387f1c6f9c5c54b377dcdd72c87c0c0bd)
2022-01-30 16:24:29 +08:00
Zhiqiang Liu
d512b0ac51 lvm2: check DM_NAME before creating symlink in 13-dm-disk.rules
check DM_NAME before creating symlink in 13-dm-disk.rules.

Fix issue: https://gitee.com/src-openeuler/lvm2/issues/I4RZLO

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
(cherry picked from commit 0cfb6fa80f12fb71c19e5a6b8d76eac838ecd333)
2022-01-30 16:24:29 +08:00
wguanghao
1aead622a7 upgrade to 2.03.14 2021-11-30 16:28:35 +08:00
wguanghao
688870712e %check modified to make run-unit-test 2021-07-28 14:58:26 +08:00
wguanghao
1e240c89d6 lvreduce support --yes option 2021-07-28 11:04:03 +08:00
wguanghao
a5cb01722a revert commit of fix VERSION issue when packaging 2021-07-26 11:55:10 +08:00
zhouwenpei
9ee8a63815 remove unnecessary build require. 2021-07-23 16:06:44 +08:00
yangl777
9c228276b8 update lvm2 version to 2.03.11 2021-01-28 11:23:06 +08:00
markeryang
d512270acf backport upstream patches-epoch2 to fix some problems 2020-12-23 11:21:35 +08:00
lixiaokeng
459b2b4940 add make test 2020-11-04 21:06:26 +08:00
wguanghao
5570c4d8ad update master branch device-mapper-version more than LTS branch 2020-08-06 14:38:06 +08:00
wguanghao
60bed57d6c update device-mapper-version to 1.02.151 2020-07-24 11:50:35 +08:00
wangjun196@huawei.com
3760a19cd2 update lvm2 version to 2.03.09-1 2020-07-22 09:26:17 +08:00
Wu Bo
6a722a9a0c rebuild package 2020-07-02 10:41:52 +08:00
hy
2f0ac3e88a add the gdb buildrequire in lvm2.spec.
the building requires the gdb
2020-03-20 15:07:47 +08:00
wangjufeng
455cf10856 backport patch to fix heap memory leak 2020-03-11 16:16:53 +08:00
eulerstorage
831e2abea9 Fix VERSION issue when packaging
Signed-off-by: eulerstorage <eulerstorage@huawei.com>
2020-01-15 04:44:54 +08:00
eulerstorage
28876fc2ad sync bugfix 2019-12-29 15:13:59 +08:00
dogsheng
61b9625884 Package init 2019-12-25 15:57:36 +08:00
dogsheng
1cca812e1e Package init 2019-12-13 15:46:32 +08:00
overweight
982b051619 Package init 2019-09-30 11:03:04 -04:00