1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
Dave Wysochanski 539f903fd2 Fix segfault when invalid field given in reporting commands.
Problem is dm_report_init() may return NULL and subsequent call to
dm_report_set_output_field_name_prefix() doesn't handle NULL value.

Example:
	pvs --nameprefixes --rows --unquoted --noheadings -opv_name,fred
  Logical Volume Fields
  ---------------------
    lv_uuid              - Unique identifier
    lv_name              - Name.  LVs created for internal use are enclosed in brackets.
 ...

  Physical Volume Segment Fields
  ------------------------------
    pvseg_start          - Physical Extent number of start of segment.
    pvseg_size           - Number of extents in segment.

  Unrecognised field: fred
Segmentation fault
2008-12-15 13:30:45 +00:00
..
activate Added displayable_lvs_in_vg and lv_is_displayable functions to deal with 2008-12-04 15:54:26 +00:00
cache Suppress 'duplicate PV' message when it's only a cache update not a real 2008-11-28 15:51:40 +00:00
commands Create _init_globals() and call from bottom of create_toolcontext(). 2008-12-12 03:30:41 +00:00
config Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
datastruct more missing bits 2008-11-04 14:57:06 +00:00
device Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
display Added displayable_lvs_in_vg and lv_is_displayable functions to deal with 2008-12-04 15:54:26 +00:00
error Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
filters Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
format1 Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
format_pool more fixes 2008-11-04 15:07:45 +00:00
format_text Remove backup_enable() calls after create_toolcontext() calls. 2008-12-11 03:33:35 +00:00
freeseg Fix reporting of LV fields alongside unallocated PV segments. 2008-06-25 16:52:27 +00:00
label Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
locking * minor compilator warning fix for improper function declaration. 2008-11-12 09:30:52 +00:00
log more tweaking to get things to compile - dmlib.h for log fns, list.h 2008-11-03 18:59:59 +00:00
metadata Added displayable_lvs_in_vg and lv_is_displayable functions to deal with 2008-12-04 15:54:26 +00:00
mirror Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
misc Make _init_rand() thread safe - use rand_r() instead of rand(). 2008-12-07 04:27:56 +00:00
mm fix setpriority int error 2008-05-28 23:12:45 +00:00
report Fix segfault when invalid field given in reporting commands. 2008-12-15 13:30:45 +00:00
snapshot Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
striped Add detection of clustered mirror log capability. 2008-04-07 10:23:47 +00:00
uuid Add generic function to read /dev/urandom, used in uuid calculation. 2008-12-07 04:23:37 +00:00
zero Right, a simple build (without options) is working again. 2008-11-03 22:14:30 +00:00
lvm2.h Add liblvm interactive test infrastructure to build. 2008-12-07 19:37:07 +00:00
Makefile.in more tweaking to get things to compile - dmlib.h for log fns, list.h 2008-11-03 18:59:59 +00:00