33 Commits

Author SHA1 Message Date
yanshuai01
a54fc4f4d0 Avoid unowned %%{python3_sitelib}/lvmdbusd directory 2024-11-14 17:11:28 +08:00
fandeyuan
d8f90ee1d9 fix function undeclared in libdm-common.c and dev-cache.c,support clang 2024-11-07 15:49:58 +08:00
yanshuai01
80ce2aa016 fix syslog setting 2024-10-29 19:27:35 +08:00
yanshuai01
a38abf6ff0 dmstats: Fix memory leak on error path 2024-10-24 15:19:08 +08:00
jinzhiguang
1eb2404c59 lvmlockd: use 4K sector size when any dev is 4K
Signed-off-by: jinzhiguang <jinzhiguang@kylinos.cn>
2024-06-14 14:08:05 +08:00
wangzhiqiang
817359b9f1 vgchange: acquire an exclusive VG lock for refresh
Signed-off-by: wangzhiqiang <wangzhiqiang95@huawei.com>
(cherry picked from commit e1e03956638b111cc8a9e9430bb798a372a5e765)
2024-02-22 19:44:13 +08:00
wuyifeng
0ede329ec9 fix an double free in the error path from _stats_creat_group
Signed-off-by: wuyifeng <wuyifeng10@huawei.com>
(cherry picked from commit 135c93abce8b7f33dac1e3f9928059a2a78a7d03)
2023-12-20 10:01:29 +08:00
wangzhiqiang
5f3022c5a3 dm-event: release buffer on dm_event_get_version
Signed-off-by: wangzhiqiang <wangzhiqiang95@huawei.com>
(cherry picked from commit c660aa7ad815b568a7e75939501af1135375ec7a)
2023-12-19 14:29:13 +08:00
wguanghao
ae95209e0b backport patch from community 2023-11-30 16:26:37 +08:00
wangzhiqiang
83d624abd9 fix an issue for the symlink of the by-uuid file lost
Signed-off-by: wangzhiqiang <wangzhiqiang95@huawei.com>
(cherry picked from commit 5c525c8c8b365d69f07ef0885cd072dfd2834f18)
2023-11-14 21:10:48 +08:00
Xiaole He
189dd63981 md: add support for intel vroc raid
Backport patches for supporting intel vroc raid device.

Commit 23774f997ea077f2cbe8a32bd8bccdd7f4560cca (devices: detect md ddf
and imsm superblocks)
Commit 00c9a788cc617e5e40746dee2e17287d61ee5c81 (devices: simplify md
superblock checking code)
Commit 7880896f0dbe730e7b47aa8040544434813eacc4 (gcc: calc size in
compile time)
Commit 12667e9897ad54f5723463b4c864c8259ba0be2a (fix check for md raid
imsm signature on 4k devices)
Commit 6a099707c433f0b3f2644c52f7773751832693a4 (clang: remove unused
assignment)

Otherwise, create vg on a intel vroc raid will produce below error:

/* command begin */
$ pvcreate /dev/md0
$ vgcreate testvg /dev/md0
Cannot use device /dev/md0 with duplicates.
/* command end */

Signed-off-by: Xiaole He <hexiaole@kylinos.cn>
2022-10-29 16:38:31 +08:00
linfeilong835
a43bed6cd4 update changlog time
Signed-off-by: linfeilong835 <linfeilong@huawei.com>
(cherry picked from commit b95bee1463b91284e3cb01b43fde031c668c1499)
2022-10-09 17:34:03 +08:00
konglidong
d49abdccbb modify bogus date in %changelog 2022-05-07 15:35:19 +08:00
Zhiqiang Liu
e1e302b32c 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 818c824b2b947a13cfc2ba66aae7fde665aed728)
2022-01-30 16:26:36 +08:00
Zhiqiang Liu
a398a5e4ac 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 e3c6fd1364353d109af874a81f263b642334aa69)
2022-01-30 16:26:36 +08:00
Zhiqiang Liu
ca5fa3b7b8 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 dea4fb1f9ce5f5fd44d12274189dcdd67bdf6434)
2022-01-30 16:26:36 +08:00
Zhiqiang Liu
1119fb9aa2 lvm2: sync 20.03 LTS branches
Fix issues: https://gitee.com/src-openeuler/lvm2/issues/I4SGY3

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
2022-01-30 09:25:46 +08:00
wguanghao
8a15b68205 add %{epoch} 2020-11-12 19:17:14 +08:00
lixiaokeng
00b78cffb2 Set help package as install requires 2020-11-10 16:31:43 +08:00
zhangyouming
5c1f572244 update version to 2.03.09 2020-08-26 11:48:22 +08:00
smileknife
5122c61c3b update release for rebuilding
Signed-off-by: smileknife <jackshan2010@aliyun.com>
2020-08-18 21:07:45 +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
wubo009
f04db9e1c1 update pkg in lts branch 2020-05-12 23:01:26 +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