1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 20:25:52 +03:00
lvm2/lib
Jonathan Earl Brassow be226be635 Fix unhandled condition in _move_lv_segments
If _move_lv_segments is passed a 'lv_from' that does not yet
have any segments, it will screw things up because the code
that does the segment copy assumes there is at least one
segment.  See copy code here:
        lv_to->segments = lv_from->segments;
        lv_to->segments.n->p = &lv_to->segments;
        lv_to->segments.p->n = &lv_to->segments;

If 'segments' is an empty list, the first statement copies over
the values, but the next two reset those values to point to the
other LV's list structure.  'lv_to' now appears to have one
segment, but it is really an ill-set pointer.
2011-03-25 22:02:27 +00:00
..
activate Mitigate some warnings if running as non-root user. 2011-03-18 12:17:57 +00:00
cache Use proper size of strncpy 2011-03-13 23:01:08 +00:00
commands Replace PV_MIN_SIZE with function pv_min_size() 2011-02-18 14:11:22 +00:00
config Optimise _eat_space and _get_token 2011-03-10 14:51:35 +00:00
datastruct Some const cleanups 2010-12-20 13:19:13 +00:00
device Fix usage of readlink 2011-03-13 22:52:16 +00:00
display Fix some compile warnings on RHEL5 2011-03-01 20:17:56 +00:00
error Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
filters Const fixing 2011-02-18 14:47:28 +00:00
format1 Fix allocation of system_id 2011-03-13 23:05:48 +00:00
format_pool Use format instance mempool where possible and adequate. 2011-03-11 15:10:16 +00:00
format_text Fix allocation of system_id 2011-03-13 23:05:48 +00:00
freeseg Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
label Add dm_zalloc and use it and dm_pool_zalloc throughout. 2010-09-30 21:06:50 +00:00
locking Critical section 2011-02-18 14:16:11 +00:00
log Critical section 2011-02-18 14:16:11 +00:00
metadata Fix unhandled condition in _move_lv_segments 2011-03-25 22:02:27 +00:00
mirror Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
misc Revert this commit 2011-03-13 23:18:30 +00:00
mm Use lvm_getpagesize wrapper 2011-03-06 17:52:07 +00:00
replicator Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
report Fix reading of released memory 2011-03-05 12:14:00 +00:00
snapshot Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
striped Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
unknown Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
uuid Const fixing 2011-02-18 14:47:28 +00:00
zero Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
Makefile.in Refactor the percent (mirror sync, snapshot usage) handling code to use 2010-11-30 11:53:31 +00:00