[PATCH 4/4] TBD: continue reshape after assembling array

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

 



Shows direction of next patches for reshape continuation
when array is assembled.

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

 Assemble.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/Assemble.c b/Assemble.c
index bdbe50a..0aafdaf 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -696,8 +696,15 @@ int Assemble(struct supertype *st, char *mddev,
 #ifndef MDASSEMBLE
 	if (content != &info) {
 		/* This is a member of a container.  Try starting the array. */
-		return assemble_container_content(st, mdfd, content, runstop,
-					   chosen_name, verbose);
+		int rv = assemble_container_content(st, mdfd, content, runstop,
+						    chosen_name, verbose);
+		dprintf(Name ": assemble_container_content() "
+			"returns status = %i\n", rv);
+		if (rv || content->reshape_active == 0)
+			return rv;
+		dprintf(Name ": Continue reshape after assemblation ...\n");
+		/* tbd: call Grow_restart() here */
+		return rv;
 	}
 #endif
 	/* Ok, no bad inconsistancy, we can try updating etc */

--
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