]> sourceware.org Git - lvm2.git/commit
Additional fixes for lv_mirror_count.
authorJonathan Earl Brassow <jbrassow@redhat.com>
Wed, 14 Sep 2011 04:10:26 +0000 (04:10 +0000)
committerJonathan Earl Brassow <jbrassow@redhat.com>
Wed, 14 Sep 2011 04:10:26 +0000 (04:10 +0000)
commit0168b2fe118dfc5a973c7b3a4185945c60da755b
tree06a8c1ec8ef2a0d861e9bca21788110298070237
parent2c9cf3b73bc0d655e8521d1e440592ece129aa8c
Additional fixes for lv_mirror_count.

Changing lv_mirror_count to only count the AREA_LVs made the function
stop working for PVMOVE mirrors.  A conditional has been added to fix
that problem.  Additionally, when counting the images in a mirror stack,
we don't need to subtract 1 from the count we get back from the
lv_mirror_count call on the temporary mirror layer.  (This is because we
are no falsely counting the top layer of the temporary mirror.)
lib/metadata/mirror.c
This page took 0.031349 seconds and 5 git commands to generate.