1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
Peter Rajnoha a9bc53d5f3 config: fix some settings incorrectly marked as CFG_DEFAULT_COMMENTED instead of CFG_DEFAULT_UNDEFINED and causing segfault
This patch fixes segfault which was caused by incorrectly marking some
settings CFG_DEFAULT_COMMENTED instead of CFG_DEFAULT_UNDEFINED - the
ones which have NULL default value, hence they're really undefined.
A regression caused by a98ceceb1d.

For example:

$ lvmconfig log/file
file="/a"

Before this patch:

$ lvmconfig --type diff
Segmentation fault (core dumped)

With this patch applied:

$ lvmconfig --type diff
log {
	file="/a"
}

The same applies for these settings:

  log/activate_file
  global/library_dir
  global/system_id_file
  <disk_area>/disk_area_id

There were also other settings with NULL default value and marked as
CFG_DEFAULT_COMMENTED instead of CFG_DEFAULT_UNDEFINED, but they were
cfg_array config settings where the NULL value was not causing segfault
(NULL == empty array).
2015-06-17 13:34:31 +02:00
..
activate debug: better tracing messages 2015-06-15 14:48:06 +02:00
cache metadata: When outdated PVs are wiped, notify lvmetad about the fact. 2015-06-10 16:27:12 +02:00
cache_segtype debug: extra validation of passed segment 2015-05-08 15:15:11 +02:00
commands new debug class for lvmpolld client code 2015-05-12 17:16:37 +02:00
config config: fix some settings incorrectly marked as CFG_DEFAULT_COMMENTED instead of CFG_DEFAULT_UNDEFINED and causing segfault 2015-06-17 13:34:31 +02:00
datastruct datastruct: Add str_list_add_list. 2015-03-26 18:30:37 +00:00
device cleanup: cast minor to dev_t 2015-05-08 15:15:10 +02:00
display display: fix return values 2015-03-10 14:10:18 +01:00
error segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
filters config: use timestamp with nanosecond precision 2015-03-18 13:42:56 +01:00
format1 format1: check for lvm1_system_id 2015-05-08 15:15:10 +02:00
format_pool cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00
format_text metadata: Reject lvmetad metadata extensions when reading from disk. 2015-06-10 16:25:57 +02:00
freeseg segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
label cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00
locking locking: rename LCK_CONVERT 2014-11-18 16:50:49 +01:00
log new debug class for lvmpolld client code 2015-05-12 17:16:37 +02:00
lvmpolld lvmpolld-client.c: debug print when querying progress 2015-05-21 11:20:21 +02:00
metadata lv_refresh: move the bulk of the function into lib 2015-06-16 13:38:40 -05:00
mirror cmirror: Adjust region size to work around CPG msg limit to avoid hang. 2015-02-25 14:42:15 -06:00
misc Add a global get_cmd_name() 2015-06-16 15:13:10 -05:00
mm xlate: add new variants 2015-06-16 09:30:14 -05:00
properties lvm2app: Correct missing string properties 2015-05-06 08:51:04 -05:00
raid segtype: add SEG_ONLY_EXCLUSIVE flag 2014-11-10 22:05:48 +01:00
replicator cleanup: drop default implementation 2014-10-24 16:39:31 +02:00
report lvm2app: Add signed numerical property values 2015-05-06 08:51:04 -05:00
snapshot segtype: add SEG_ONLY_EXCLUSIVE flag 2014-11-10 22:05:48 +01:00
striped segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
thin cleanup: add lv_is_error_when_full() macro 2015-01-20 14:52:06 +01:00
unknown segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
uuid cleanup: drop unused define 2014-03-12 19:12:34 +01:00
zero cleanup: remove unused headers 2014-11-13 17:49:42 +01:00
Makefile.in lvmpolld: Add standalone polldaemon. 2015-05-09 00:59:18 +01:00