All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
To: lvm-devel@redhat.com
Subject: [PATCH LVM2] (1/12) add flattened index to _for_each_pv()
Date: Fri, 13 Oct 2006 16:55:00 -0400	[thread overview]
Message-ID: <452FFD24.9070403@ce.jp.nec.com> (raw)
In-Reply-To: <452FFCFB.6090805@ce.jp.nec.com>

This patch adds "flattened index" to _for_each_pv().

o Using this index, you can map the stacked LV segment into
  the array of PVs.
  This is useful for allocation code to find index of areas[]
  corresponding to the prev_lvseg.

o _for_each_pv() doesn't execute call back function if it's NULL.
  It's useful if you just need to count the number of PVs.
  (_count_parallel_areas).

o The patch adds "start_index" and "end_index" to restrict
  the function call back while maintaining the flattened index.

o Also the patch adds "walk_log_lv" flag instead of reusing
  !only_single_area_segments as workaround, because it is no
  longer correct.


$ diffstat -p1 01.for_each_pv.patch
 lib/metadata/lv_manip.c |   76 ++++++++++++++++++++++++++++++++++++---------
 1 file changed, 57 insertions(+), 19 deletions(-)


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 01.for_each_pv.patch
Type: text/x-patch
Size: 6128 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20061013/01cbc088/attachment.bin>

  reply	other threads:[~2006-10-13 20:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-13 20:54 [PATCH LVM2] (0/12) LVM2 allocation rewrites Jun'ichi Nomura
2006-10-13 20:55 ` Jun'ichi Nomura [this message]
2006-10-13 20:55 ` [PATCH LVM2] (2/12) rewrite with struct allocation request Jun'ichi Nomura
2006-10-13 20:57 ` [PATCH LVM2] (3/12) remove ix_offset from _find_parallel_space() Jun'ichi Nomura
2006-10-13 20:58 ` [PATCH LVM2] (4/12) separate constraints checker " Jun'ichi Nomura
2006-10-13 20:59 ` [PATCH LVM2] (5/12) allow preference to small area Jun'ichi Nomura
2006-10-13 21:00 ` [PATCH LVM2] (6/12) move _add_pvs() to the earlier part of the file Jun'ichi Nomura
2006-10-13 21:00 ` [PATCH LVM2] (7/12) update parallel_areas for on-going allocation Jun'ichi Nomura
2006-10-13 21:01 ` [PATCH LVM2] (8/12) 'anywhere' policy implementation Jun'ichi Nomura
2006-10-13 21:13 ` [PATCH LVM2] (9/12) lvconvert to use build_parallel_areas_from_lv() Jun'ichi Nomura
2006-10-13 21:14 ` [PATCH LVM2] (10/12) calculate free pe counts before allocation attempt Jun'ichi Nomura
2006-10-13 21:14 ` [PATCH LVM2] (11/12) extending parallel_area to cover log device Jun'ichi Nomura
2006-10-13 21:14 ` [PATCH LVM2] (12/12) sort the allocation requests Jun'ichi Nomura

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=452FFD24.9070403@ce.jp.nec.com \
    --to=j-nomura@ce.jp.nec.com \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.