[linux-lvm] [PATCH LVM2] (3/3) add 'cling' allocation policy
Jun'ichi Nomura
j-nomura at ce.jp.nec.com
Fri Oct 6 21:56:54 UTC 2006
This patch adds 'cling' allocation policy.
Currently there are 3 policies: 'contiguous', 'normal', 'anywhere'.
LVM2 tries to apply from left to right until it succeeds allocation
or it failed to allocate with specified policy.
With this patch, policies are applied in the order:
'contiguous', 'cling', 'normal', 'anywhere'.
>From man page:
The contiguous policy requires that
new extents are adjacent to existing extents. If there are sufficient
free extents to satisfy an allocation request but normal doesn't use them,
anywhere will - even if that reduces performance by placing two stripes
on the same physical volume.
'cling' policy requires that new extents are on the same physical
volume with the existing extents.
diffstat:
include/metadata.h | 1
lib/display/display.c | 1
lib/metadata/lv_manip.c | 49 ++++++++++++++++++++++++++++++++++++++++++++---- lib/metadata/metadata.h | 1
lib/report/report.c | 2 +
man/lvm.8 | 4 ++-
6 files changed, 53 insertions(+), 5 deletions(-)
Thanks,
--
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 06-add-cling-allocation-policy.patch
Type: text/x-patch
Size: 6158 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20061006/54ade831/attachment.bin>
More information about the linux-lvm
mailing list