Grow: don't try setting new geometry when restarting a native reshape.

md won't let us change raid_disks in this case, so don't even try.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2011-01-31 15:01:15 +11:00
parent c3f26510c6
commit cdc6068148
1 changed files with 5 additions and 0 deletions

5
Grow.c
View File

@ -1931,6 +1931,11 @@ started:
goto release;
}
} else if (info->reshape_active && !st->ss->external) {
/* We don't need to set anything here for internal
* metadata, and for kernels before 2.6.38 we can
* fail if we try.
*/
} else {
/* set them all just in case some old 'new_*' value
* persists from some earlier problem.