File fix-build-error-caused-by-commit-b93b8537.patch of Package lvm2.openSUSE_Leap_42.1_Update

From 13a20916c19e90437e43d28e9dfcb1fee1c2a112 Mon Sep 17 00:00:00 2001
From: Liuhua Wang <lwang@suse.com>
Date: Thu, 10 Sep 2015 15:59:18 +0800
Subject: [PATCH] Fix build error caused by commit b93b8537

commit b93b8537 renamed ix_offset caused SuSE patch
(improve-mirror-legs-on-different-tag-pvs.patch) build error.

Reference: bnc#942888
---
 lib/metadata/lv_manip.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c
index 0a5f73d..99a6a2a 100644
--- a/lib/metadata/lv_manip.c
+++ b/lib/metadata/lv_manip.c
@@ -2729,8 +2729,8 @@ static int _find_some_parallel_space(struct alloc_handle *ah,
 
 				case USE_AREA:
 					ret = check_areas_separate_tags(ah,
-							alloc_state, ix_offset,
-							ix + ix_offset, pva);
+							alloc_state, alloc_state->num_positional_areas,
+							ix + alloc_state->num_positional_areas, pva);
 					if (ret >= 0) {
 						_replace_required_area(ah,
 							max_to_allocate,
-- 
1.8.4.5