From mboxrd@z Thu Jan 1 00:00:00 1970 From: Krzysztof Wojcik Subject: [PATCH 4/6] FIX: Mistake in delta_disk comparison. Date: Wed, 12 Jan 2011 17:01:24 +0100 Message-ID: <20110112160124.18013.96944.stgit@gklab-128-111.igk.intel.com> References: <20110112155905.18013.73701.stgit@gklab-128-111.igk.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20110112155905.18013.73701.stgit@gklab-128-111.igk.intel.com> Sender: linux-raid-owner@vger.kernel.org To: neilb@suse.de Cc: linux-raid@vger.kernel.org, wojciech.neubauer@intel.com, adam.kwolek@intel.com, dan.j.williams@intel.com, ed.ciechanowski@intel.com List-Id: linux-raid.ids Signed-off-by: Krzysztof Wojcik --- Grow.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Grow.c b/Grow.c index c06561f..253f289 100644 --- a/Grow.c +++ b/Grow.c @@ -963,7 +963,7 @@ char *analyse_change(struct mdinfo *info, struct reshape *re) return "RAID10 can only be changed to RAID0"; new_disks = (info->array.raid_disks / (info->array.layout & 0xff)); - if (info->delta_disks != UnSet) { + if (info->delta_disks == UnSet) { info->delta_disks = (new_disks - info->array.raid_disks); }