master - alloc: Respect cling_tag_list in contig alloc.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=cc26085b62d8cad265fca86426c65c88491a7473 Commit: cc26085b62d8cad265fca86426c65c88491a7473 Parent: b851b74cba6dd8d1c2c831d5e3d2662734f987e8 Author: Alasdair G Kergon <[email protected]> AuthorDate: Sat Apr 11 01:55:24 2015 +0100 Committer: Alasdair G Kergon <[email protected]> CommitterDate: Sat Apr 11 01:55:24 2015 +0100
alloc: Respect cling_tag_list in contig alloc.
When performing initial allocation (so there is nothing yet to cling to), use the list of tags in allocation/cling_tag_list to partition the PVs. We implement this by maintaining a list of tags that have been "used up" as we proceed and ignoring further devices that have a tag on the list.
https://bugzilla.redhat.com/983600
--- WHATS_NEW | 1 + lib/format_text/format-text.c | 2 +- lib/metadata/lv_manip.c | 80 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+), 1 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.119 - ================================== + Respect allocation/cling_tag_list during intial contiguous allocation. Add A_PARTITION_BY_TAGS set when allocated areas should not share tags. Set correct vgid when updating cache when writing PV metadata. More efficient clvmd singlenode locking emulation.
lib/format_text/format-text.c +1 -1
@@ -1333,7 +1333,7 @@ static int _text_pv_write(const struct format_type *fmt, struct physical_volume/* Add a new cache entry with PV info or update existing one. */ if (!(info =lvmcache_add (fmt->labeller, (const char *) &pv->id, pv->dev, pv->vg_name, -is_orphan_vg (pv->vg_name) ? pv->vg_name : pv->vg ? &pv->vg->id :NULL ,0 ))) +is_orphan_vg (pv->vg_name) ? pv->vg_name : pv->vg ? (const char *) &pv->vg->id :NULL ,0 ))) return_0; label =lvmcache_get_label (info);
lib/metadata/lv_manip.c +80 -0
98 lines not on this page · raw message