From: NeilBrown Date: Thu, 20 Jan 2011 22:01:09 +0000 (+1100) Subject: Correctly initialise backup_point when reshaping backwards. X-Git-Tag: mdadm-3.2~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25da62d9adc9009a7f9d1234b784efac3c4ac24c;p=thirdparty%2Fmdadm.git Correctly initialise backup_point when reshaping backwards. When reshaping backwards we only backup from backup_blocks to the start, so initialise backup_point appropriately. Signed-off-by: NeilBrown --- diff --git a/Grow.c b/Grow.c index 14701bdc..fc44d4a3 100644 --- a/Grow.c +++ b/Grow.c @@ -2787,7 +2787,7 @@ int child_monitor(int afd, struct mdinfo *sra, struct reshape *reshape, suspend_point = 0; } else { array_size = sra->component_size * reshape->before.data_disks; - backup_point = array_size; + backup_point = reshape->backup_blocks; suspend_point = array_size; }