1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
David Teigland 87d9406725 lib: fix init error handling
When setting up a toolcontext, the lib init function
was detecting an error when there was none, and then
it was returning an incompletely initialized cmd struct
instead of NULL.  The effect was that the lib would try
to use the uninitialized cmd struct and segfault.
This would happen if a non-fatal error occurred during
cmd setup, e.g. user permission failed on lvmetad socket,
causing cmd to fall back to scanning and not use lvmetad.

The only real error condition is when create_toolcontext
returns NULL.  If cmd is returned, the lib can use it.
2016-05-12 13:07:52 -05:00
..
activate activation: activation check is mandatory 2016-05-06 16:48:16 +02:00
cache lvmetad: Fix client error when socket access fails. 2016-05-12 01:54:09 +01:00
cache_segtype cleanup: drop tracing 2016-05-06 16:48:16 +02:00
commands lib: fix init error handling 2016-05-12 13:07:52 -05:00
config lvmcache: improve duplicate PV handling 2016-05-06 09:00:00 -05:00
datastruct datastruct: Add str_list_wipe. 2016-04-29 19:47:15 +01:00
device device: Retry open without O_NOATIME if it fails. 2016-05-12 01:05:52 +01:00
display display: Avoid internal snapshot LV names in msgs. 2016-04-21 00:30:17 +01:00
error activate: Use macros for target and module names. 2016-03-22 17:46:15 +00:00
filters dev-cache: also index VGIDs and LVIDs if using persistent .cache file 2016-03-30 11:00:01 +02:00
format1 redefine pvcreate structs 2016-02-25 09:14:10 -06:00
format_pool redefine pvcreate structs 2016-02-25 09:14:10 -06:00
format_text debug: move misplaced log_debug 2016-04-21 00:34:01 +02:00
freeseg doc: change fsf address 2016-01-21 12:11:37 +01:00
label doc: change fsf address 2016-01-21 12:11:37 +01:00
locking cleanup: simplify code 2016-04-22 00:22:02 +02:00
log cleanup: use unsigned with EPOCH printf format 2016-05-05 23:55:20 +02:00
lvmpolld doc: change fsf address 2016-01-21 12:11:37 +01:00
metadata metadata: move warning message about repairing VG 2016-05-06 09:00:00 -05:00
mirror activate: Use macros for target and module names. 2016-03-22 17:46:15 +00:00
misc debug: unify some tracing messages 2016-04-12 13:06:16 +02:00
mm doc: change fsf address 2016-01-21 12:11:37 +01:00
notify coverity: drop unused header file 2016-04-22 01:12:34 +02:00
properties doc: change fsf address 2016-01-21 12:11:37 +01:00
raid segtype: check for activation2 2016-05-06 16:48:16 +02:00
replicator doc: change fsf address 2016-01-21 12:11:37 +01:00
report pvs: new attr and field for unchosen duplicate device 2016-05-06 09:00:00 -05:00
snapshot activate: Use macros for target and module names. 2016-03-22 17:46:15 +00:00
striped activate: Use macros for target and module names. 2016-03-22 17:46:15 +00:00
thin Revert "thin: display highest mapped sector" 2016-04-01 20:09:38 +01:00
unknown doc: change fsf address 2016-01-21 12:11:37 +01:00
uuid doc: change fsf address 2016-01-21 12:11:37 +01:00
zero activate: Use macros for target and module names. 2016-03-22 17:46:15 +00:00
Makefile.in dbus: add notification from commands 2016-03-07 10:06:09 -06:00