]> sourceware.org Git - lvm2.git/commit
Fix readahead calculation problems.
authorMilan Broz <mbroz@redhat.com>
Mon, 1 Jun 2009 12:43:31 +0000 (12:43 +0000)
committerMilan Broz <mbroz@redhat.com>
Mon, 1 Jun 2009 12:43:31 +0000 (12:43 +0000)
commit436cf945955f0ada6a197d3e58e15fc58a7e9eb7
tree656544f4bab6dc648d1f12c223cb4dbbf20c09b0
parent145c9997628d3b183d85a412889472cd97738e28
Fix readahead calculation problems.

During vgreduce is failed mirror image replaced with error segment,
this segmant type has always area_count == 0.
Current code expects that there is at least one area with device,
patch fixes it by additional check (fixes segfault during vgreduce).

Also do not calculate readahead in every lv_info call, we only need
to cache PV readahead before activation calls which locks memory.
WHATS_NEW
lib/activate/activate.c
lib/activate/dev_manager.c
lib/metadata/metadata.c
lib/metadata/metadata.h
This page took 0.032268 seconds and 5 git commands to generate.