1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/libdm
Peter Rajnoha 847e2856a2 config: require dm_config_create_value for dm_config_node's value
If we were defining a section (which is a node without a value) and
the value was created automatically on dm_config_create_node call,
we were wasting resources as the next step after creating the config
node itself was assigning NULL for the node's value.

The dm_config_node_create + dm_config_create_value sequence should be
used instead for settings and dm_config_node_create alone for sections.

The majority of the code already used the correct sequence. Though
with dm_config_node_create fn creating the value as well, the pool
memory was being trashed this way.

This patch removes the node value initialization on dm_config_create_node
fn call and keeps it for the direct dm_config_create_value fn call.
2012-08-27 14:33:54 +02:00
..
datastruct Use void pointer instead of char for binary key 2011-03-10 12:48:40 +00:00
ioctl cleanup: keep MKNOD type cast clean 2012-08-23 14:37:21 +02:00
misc dmsetup: allow --noflush with status/wait for thin 2012-07-27 20:03:07 +01:00
mm Add cast for ptrdiff_t - cleanup gcc warning 2012-03-01 10:31:35 +00:00
regex cleanup: add __attribute__ ((nonnull(1))) 2012-08-23 14:37:52 +02:00
.exported_symbols Generate liblvm2app and libdevmapper exported symbols from header files. 2010-06-25 18:17:38 +00:00
libdevmapper.h thin: use discards as plural rather than singular 2012-08-07 21:24:41 +01:00
libdevmapper.pc.in Switch to use Requires.private for devmapper.pc and lvm2app.pc 2010-05-11 08:54:11 +00:00
libdm-common.c cleanup: keep MKNOD type cast clean 2012-08-23 14:37:21 +02:00
libdm-common.h Check for multiple mangled names in auto mangling mode. 2012-03-05 12:48:12 +00:00
libdm-config.c config: require dm_config_create_value for dm_config_node's value 2012-08-27 14:33:54 +02:00
libdm-deptree.c RAID: Add support for RAID10 2012-08-24 15:34:19 -05:00
libdm-file.c Drop unreachable code 2012-02-08 12:59:45 +00:00
libdm-report.c check: add internal errors for unexpected paths 2012-08-23 14:37:52 +02:00
libdm-string.c libdm-string: Add dm_vasprintf. 2012-07-31 11:12:34 +02:00
Makefile.in Move the core of the lib/config/config.c functionality into libdevmapper, 2011-08-30 14:55:15 +00:00