[PATCH 30/34] Raid0: execute backward takeover

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



After raid0 reshape is finished backward takeover has to be executed.

Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx>
---

 Grow.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Grow.c b/Grow.c
index 3814579..c88df1b 100644
--- a/Grow.c
+++ b/Grow.c
@@ -2072,8 +2072,8 @@ static int reshape_array(char *container, int fd, char *devname,
 					sysfs_free(info2);
 				}
 			}
-
-			if (info->new_level != info->array.level) {
+			if ((info->new_level != info->array.level) ||
+			    ((info->new_level == 0) && (orig_level == 0))) {
 				/* We need to wait for the reshape to finish
 				* (which will have happened unless
 				 * odata < ndata) and then set the level

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux