1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00
lvm2/lib
Petr Rockai 5ef2808bc7 In some cases, we could end up with a mirrored LV without a MIRRORED flag. In
other cases, the code could wind up removing wrong number of mirrors. In yet
other cases, we could remove the right number of mirrors, but fail to respect
the removal preferences (i.e. keep an image that was requested to be removed
while removing an image that was requested to be kept). Under some
circumstances, remove_mirror_images could also get stuck in an infinite loop.

This patch should fix all of the above undesirable behaviours.

Signed-off-by: Petr Rockai <prockai@redhat.com>
Reviewed-by: Jonathan Brassow <jbrassow@redhat.com>
2011-03-24 12:28:02 +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 Remove const usage from destroy callbacks 2010-12-20 13:32:49 +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 Remove const usage from destroy callbacks 2010-12-20 13:32:49 +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 In some cases, we could end up with a mirrored LV without a MIRRORED flag. In 2011-03-24 12:28:02 +00:00
mirror Fix !DEVMAPPER_SUPPORT build 2011-02-18 14:29:39 +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 Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
report Fix reading of released memory 2011-03-05 12:14:00 +00:00
snapshot Fix !DEVMAPPER_SUPPORT build 2011-02-18 14:29:39 +00:00
striped Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
unknown Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
uuid Const fixing 2011-02-18 14:47:28 +00:00
zero Remove const usage from destroy callbacks 2010-12-20 13:32:49 +00:00
Makefile.in Refactor the percent (mirror sync, snapshot usage) handling code to use 2010-11-30 11:53:31 +00:00