FIX: Mistake in delta_disk comparison.

Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Krzysztof Wojcik 2011-01-13 13:37:31 +11:00 committed by NeilBrown
parent 694575e786
commit 5dad078d99
1 changed files with 1 additions and 1 deletions

2
Grow.c
View File

@ -952,7 +952,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);
}