]> sourceware.org Git - lvm2.git/commit
Replace const usage of dm_config_find_node with more appropriate value-lookup
authorPetr Rockai <prokai@redhat.com>
Wed, 31 Aug 2011 15:19:19 +0000 (15:19 +0000)
committerPetr Rockai <prokai@redhat.com>
Wed, 31 Aug 2011 15:19:19 +0000 (15:19 +0000)
commit118fa896b74890add1db6e80fcdae2b353225c9c
tree5a8b78ec9b9e35c47f9ae9d701180b47e9774315
parent4c76c264dc12a62fda2127280c7bd799bd6ef497
Replace const usage of dm_config_find_node with more appropriate value-lookup
functionality. A number of bugs (copied and pasted all over the code) should
disappear:

- most string lookup based on dm_config_find_node would segfault when
  encountering a non-zero integer (the intention there was to print an
  error message instead)
- check for required sections in metadata would have been satisfied by
  values as well (i.e. not sections)
- encountering a section in place of expected flag value would have
  segfaulted (due to assumed but unchecked cn->v != NULL)
lib/config/config.c
lib/format_text/import_vsn1.c
lib/format_text/text_import.h
lib/mirror/mirrored.c
lib/raid/raid.c
lib/striped/striped.c
libdm/libdevmapper.h
libdm/libdm-config.c
This page took 0.033854 seconds and 5 git commands to generate.