[lvm-devel] [PATCH mirror 5/13] lv_mirror_count() to cope with stacked mirror
Jun'ichi Nomura
j-nomura at ce.jp.nec.com
Thu Dec 20 18:03:12 UTC 2007
Change lv_mirror_count() to cope with stacked mirror with resync layers.
When adding mirrors to already mirrored LV, LVM2 will stack a temporary
mirror layer for resync.
So the lv_mirror_count() should take into account these things:
- loop down through the mirror stack
- exclude the resync LV from the count
Thanks,
--
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvm2-stacked-mirror-lv_mirror_count.patch
Type: text/x-patch
Size: 2114 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20071220/bf5cee0f/attachment.bin>
More information about the lvm-devel
mailing list