[lvm-devel] [PATCH pvmove 3/6] Add split_parent_segments()

Jun'ichi Nomura j-nomura at ce.jp.nec.com
Thu Dec 6 16:49:53 UTC 2007


Add split_parent_segments().

The function walks through LVs in the VG.
For each lv segment, check if it's on multiple layer segments.
If so, split the lv segment so that only 1 layer segment is under
the lv segment.

For example, a segment on pvmove layer is a source segment of the move.
If there are multiple underlying pvmove segments, it means the
destination is splitted and the source segment should be splitted
when the move completes.
The function is a helper for cases like this.

This is a generalized version of _split_source_lv_segment()
in the previous post:
https://www.redhat.com/archives/lvm-devel/2007-November/msg00035.html

Thanks,
-- 
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvm2-split-parent-segments.patch
Type: text/x-patch
Size: 2778 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20071206/b4dae9e4/attachment.bin>


More information about the lvm-devel mailing list