From b397d7f3e08bdebcfce11ae9e281f93c5c4b9761 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 24 Jun 2013 13:04:38 +1000 Subject: [PATCH] Grow: fix two problems with new_data_offset 1/ ignore failed devices - obviously 2/ We need to tell the kernel which direction the reshape should progress even if we didn't choose the particular data_offset to use. Signed-off-by: NeilBrown --- Grow.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Grow.c b/Grow.c index 556bdaf..7bfb3ce 100644 --- a/Grow.c +++ b/Grow.c @@ -2267,6 +2267,8 @@ static int set_new_data_offset(struct mdinfo *sra, struct supertype *st, char *dn = map_dev(sd->disk.major, sd->disk.minor, 0); unsigned long long new_data_offset; + if (sd->disk.state & (1< 0) { /* Increase data offset */ if (after < min) {