From 97bc274ddce60eac43ea3a7b3c22e5cf9f4bbd35 Mon Sep 17 00:00:00 2001 From: Philippe De Muyter Date: Wed, 19 Jun 2013 10:08:34 +1000 Subject: [PATCH] partitions-add-aix-lvm-partition-support-files-v2 Fix a problem in the discovering of small (1 pp) partitions in presence of discontiguous partitions. Signed-off-by: Philippe De Muyter Cc: Karel Zak Cc: Jens Axboe Signed-off-by: Andrew Morton --- block/partitions/aix.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/block/partitions/aix.c b/block/partitions/aix.c index b3288d24dacf..ef46cf3594f8 100644 --- a/block/partitions/aix.c +++ b/block/partitions/aix.c @@ -257,12 +257,13 @@ int aix_partition(struct parsed_partitions *state) continue; } lvip[lv_ix].pps_found += 1; - if (lp_ix != next_lp_ix) - continue; - if (lp_ix == 1) + if (lp_ix == 1) { cur_lv_ix = lv_ix; - else if (lv_ix != cur_lv_ix) next_lp_ix = 1; + } else if (lv_ix != cur_lv_ix || lp_ix != next_lp_ix) { + next_lp_ix = 1; + continue; + } if (lp_ix == lvip[lv_ix].pps_per_lv) { char tmp[70]; -- 2.39.2