]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Raid0: execute backward takeover
authorAdam Kwolek <adam.kwolek@intel.com>
Thu, 6 Jan 2011 08:20:01 +0000 (19:20 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 6 Jan 2011 08:20:01 +0000 (19:20 +1100)
After raid0 reshape is finished backward takeover has to be executed.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c

diff --git a/Grow.c b/Grow.c
index 25c55ccba6938ebf65cc4122acd9142fa4f85e62..1222263ec556ee5364008cf22bce080961535c46 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -2047,7 +2047,7 @@ static int reshape_array(char *container, int fd, char *devname,
                        }
                }
 
-               if (info->new_level != info->array.level) {
+               if (info->new_level != reshape.level) {
                        /* We need to wait for the reshape to finish
                         * (which will have happened unless
                         * odata < ndata) and then set the level