[lvm-devel] [PATCH LVM2] (8/12) 'anywhere' policy implementation

Jun'ichi Nomura j-nomura at ce.jp.nec.com
Fri Oct 13 21:01:40 UTC 2006


This patch implements 'anywhere' policy.

o relax_allocation_requests() is added to split the allocation requests
  into smallest possible pieces so that they can fit into any number of PVs.

o _setup_alloced_segment() needed to be changed because it assumed
  the list items in ah->alloced_areas[0] can be used as array.
  It's no longer true.

o dm_pool_free() in relax_allocation_requests() seems to free whole
  alloc_handle and not usable. I might be using it in wrong way.


$ diffstat -p1 08.anywhere.patch
 lib/metadata/lv_manip.c |  108 +++++++++++++++++++++++++++++++++++++++------
 1 file changed, 89 insertions(+), 19 deletions(-)


Thanks,
-- 
Jun'ichi Nomura, NEC Corporation of America



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 08.anywhere.patch
Type: text/x-patch
Size: 5178 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20061013/91bcc3a3/attachment.bin>


More information about the lvm-devel mailing list