1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
Milan Broz 4fb39ae074 Validate mirror segments size
Currently some operation with striped mirrors lead
to corrupted metadata, this patch just add detection of such
situation.

Example:
# lvcreate -i2 -l10 -n lvs vg_test
# lvconvert -m1 vg_test/lvs

# lvreduce -f -l1 vg_test/lvs
  Reducing logical volume lvs to 4.00 MiB
  Segment extent reduction 9not divisible by #stripes 2
  Logical volume lvs successfully resized

# lvremove vg_test/lvs
  Segment extent reduction 1not divisible by #stripes 2
  LV segment lvs:0-4294967295 is incorrectly listed as being used by LV lvs_mimage_0
  Internal error: LV segments corrupted in lvs_mimage_0.
2011-06-09 19:36:16 +00:00
..
activate Fix some unmatching sign comparation gcc warnings 2011-04-08 14:40:18 +00:00
cache Defer writing PV labels to vg_write. 2011-06-01 19:29:31 +00:00
commands When glibc needs buffers for line buffering of input and output buffers, it 2011-05-07 13:50:11 +00:00
config test 2011-05-24 14:10:55 +00:00
datastruct Better const cast logic 2011-04-08 14:14:57 +00:00
device Use new dev_open_readonly fn to prevent opening devices for read-write when not necessary. 2011-05-28 09:48:14 +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 Add and use dev_open_readonly and variations. 2011-05-24 13:36:57 +00:00
format1 Defer writing PV labels to vg_write. 2011-06-01 19:29:31 +00:00
format_pool Use new dev_open_readonly fn to prevent opening devices for read-write when not necessary. 2011-05-28 09:48:14 +00:00
format_text Defer writing PV labels to vg_write. 2011-06-01 19:29:31 +00:00
freeseg Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
label Report sector containing label in verbose message. 2011-06-01 15:30:36 +00:00
locking Propagate test mode to clvmd to skip activation and changes to held locks. 2011-06-01 21:16:55 +00:00
log pre-release clean-ups 2011-04-29 00:21:13 +00:00
metadata Validate mirror segments size 2011-06-09 19:36:16 +00:00
mirror Make vg_mark_partial_lvs also clear existing PARTIAL_LV flags, so it can be 2011-05-07 13:32:05 +00:00
misc Fix create_temp_name to replace any '/' found in the hostname with '?'. 2011-06-08 08:49:53 +00:00
mm Report sector containing label in verbose message. 2011-06-01 19:26:38 +00:00
replicator Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
report This patchset refactors some reporting code and completes the remaining 2011-04-12 12:24:29 +00:00
snapshot pre-release clean-ups 2011-04-29 00:21:13 +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