1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/tools
Wu Guanghao 844037ecdf pvmove: check return value of top_level_lv_name()
The return value of top_level_lv_name() may be NULL, so we should
check return value of top_level_lv_name before calling
strcmp(lv->name, top_level_lv_name(vg, lv_name)).

Signed-off-by: Wu Guanghao <wuguanghao3@huawei.com>
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
2020-10-16 17:07:59 +02:00
..
.exported_symbols generate liblvm2cmd exported symbols too 2010-06-25 18:23:10 +00:00
.gitignore tools: add generated headers to .gitignore 2017-03-10 13:13:41 +00:00
args.h lvconvert: improve text about splitmirrors 2018-07-23 12:31:28 -05:00
cmdnames.h doc: change fsf address 2016-01-21 12:11:37 +01:00
command-lines.in lvchange: add --resync help/manual text relative to 'R' attribute 2019-09-06 14:19:32 +02:00
command.c cov: explicitely ignore function result 2020-10-16 16:02:06 +02:00
command.h cleanup: fix some typos 2017-07-10 14:58:33 +02:00
commands.h scan: skip device rescan in vg_read 2018-04-20 11:23:14 -05:00
dmsetup.c dmsetup: initilize winsize struct 2020-10-16 16:02:06 +02:00
dumpconfig.c lvmconfig: Add options to produce file preamble 2017-08-05 16:23:34 +01:00
errors.h tools: Introduce exit code EINIT_FAILED. 2017-07-26 23:18:03 +01:00
formats.c doc: change fsf address 2016-01-21 12:11:37 +01:00
license.inc pre-release 2017-03-28 16:11:35 +01:00
lv_props.h commands: new method for defining commands 2017-02-13 08:20:10 -06:00
lv_types.h commands: recognize raid variations 2017-02-13 08:20:10 -06:00
lvchange.c monitoring: fix monitoring change for cluster 2019-05-06 15:57:52 +02:00
lvconvert_poll.c lvconvert_poll: ensure LV has snapshot type 2020-10-16 17:07:58 +02:00
lvconvert_poll.h doc: change fsf address 2016-01-21 12:11:37 +01:00
lvconvert.c lvconvert: check if LV has cow type 2020-10-16 17:07:58 +02:00
lvcreate.c vdo: avoid running initialization of cache pool vars 2020-01-13 17:41:22 +01:00
lvdisplay.c process_each_lv: add check_single_lv function 2017-02-13 08:20:10 -06:00
lvextend.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2cmd-static.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2cmd.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2cmd.h tools: Introduce exit code EINIT_FAILED. 2017-07-26 23:18:03 +01:00
lvm2cmdline.h commands: fix memory debug for cmd defs 2017-05-01 15:27:14 -05:00
lvm-static.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm.c debug: tracing error path 2017-06-27 00:27:36 +02:00
lvmcmdlib.c commands: fix memory debug for cmd defs 2017-05-01 15:27:14 -05:00
lvmcmdline.c Revert "Revert "vgcreate/vgextend: restrict PVs with mixed block sizes"" 2019-10-24 10:01:12 -05:00
lvmdiskscan.c filter: use bcache for filter reads 2018-05-10 16:03:19 -05:00
lvpoll.c tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
lvreduce.c doc: change fsf address 2016-01-21 12:11:37 +01:00
lvremove.c process_each_lv: add check_single_lv function 2017-02-13 08:20:10 -06:00
lvrename.c toollib: make it possible to also process internal VGs, add 'include_internal' switch to process_each_vg fn 2016-06-20 11:33:42 +02:00
lvresize.c lvresize: support passing --yes to fsadm 2017-06-21 14:03:29 +02:00
lvscan.c pvscan: fix activation of incomplete VGs 2019-09-03 15:53:07 -05:00
Makefile.in [makefile] add -laio to makefiles 2018-04-20 11:13:17 -05:00
polldaemon.c poll: add stdout fflush after poll query 2018-05-12 11:30:05 +02:00
pvchange.c lvmetad: two phase vg_update 2016-06-28 02:30:31 +01:00
pvck.c pvck: allow checking at user specified offsets 2018-05-11 11:23:51 -05:00
pvcreate.c filter: use bcache for filter reads 2018-05-10 16:03:19 -05:00
pvdisplay.c lvmetad: two phase vg_update 2016-06-28 02:30:31 +01:00
pvmove_poll.c pvmove: add missing synchronization 2019-08-20 12:59:05 +02:00
pvmove_poll.h doc: change fsf address 2016-01-21 12:11:37 +01:00
pvmove.c pvmove: check return value of top_level_lv_name() 2020-10-16 17:07:59 +02:00
pvremove.c pvremove: skip lvmlockd locks for forced clearing 2018-05-30 09:25:45 -05:00
pvresize.c pvresize: update message 2018-06-22 12:34:24 +02:00
pvscan.c pvscan: fix activation of incomplete VGs 2019-09-03 15:53:07 -05:00
reporter.c cleanup: matching declaration order 2020-10-16 16:02:06 +02:00
segtypes.c doc: change fsf address 2016-01-21 12:11:37 +01:00
stub.h Remove lvm1 and pool disk formats 2018-04-30 16:55:02 -05:00
tags.c doc: change fsf address 2016-01-21 12:11:37 +01:00
tool.h build: add -D_FILE_OFFSET_BITS=64 2018-05-02 18:40:38 +01:00
toollib.c cov: missing checks of syscalls 2019-11-08 13:04:02 +01:00
toollib.h cache: enable usage of --cachemetadataformat 2017-03-10 19:33:01 +01:00
tools.h gcc: zero-sized array to fexlible array C99 2020-10-16 16:02:06 +02:00
vals.h Remove lvm1 and pool disk formats 2018-04-30 16:55:02 -05:00
vgcfgbackup.c coverity: avoid memleak 2017-11-07 21:26:09 +01:00
vgcfgrestore.c pvscan: fix activation of incomplete VGs 2019-09-03 15:53:07 -05:00
vgchange.c pvscan: avoid redundant activation 2019-08-26 16:25:18 -05:00
vgck.c toollib: make it possible to also process internal VGs, add 'include_internal' switch to process_each_vg fn 2016-06-20 11:33:42 +02:00
vgconvert.c Remove lvm1 and pool disk formats 2018-04-30 16:55:02 -05:00
vgcreate.c Revert "Revert "vgcreate/vgextend: restrict PVs with mixed block sizes"" 2019-10-24 10:01:12 -05:00
vgdisplay.c tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
vgexport.c tools: Use arg_is_set instead of arg_count. 2016-06-21 22:24:52 +01:00
vgextend.c cleanup: add spaces between literals 2020-10-16 16:02:06 +02:00
vgimport.c pvscan: fix activation of incomplete VGs 2019-09-03 15:53:07 -05:00
vgimportclone.c pvscan: fix activation of incomplete VGs 2019-09-03 15:53:07 -05:00
vgmerge.c lvmcache: simplify 2018-04-20 11:22:48 -05:00
vgmknodes.c process_each_lv: add check_single_lv function 2017-02-13 08:20:10 -06:00
vgreduce.c cleanup: add missing WARNING into log_warn 2016-11-25 15:01:27 +01:00
vgremove.c tidy: Add missing underscores to statics. 2017-10-18 15:58:13 +01:00
vgrename.c vgrename: fix error value when name exists 2020-10-16 17:07:59 +02:00
vgscan.c pvscan: fix activation of incomplete VGs 2019-09-03 15:53:07 -05:00
vgsplit.c cache: support vgsplit 2019-04-16 12:57:18 +02:00