Thread (36 messages) flat view 36 messages, 2 authors, 2011-01-06
STALE5710d

[PATCH 01/34] Manage reshape process in manage_reshape vector.

From: Adam Kwolek <hidden>
Date: 2011-01-04 14:35:26
Subsystem: the rest · Maintainer: Linus Torvalds

From: Krzysztof Wojcik <redacted>

The manage_reshape vector is intended to be be used as
reshape process supervisor for external metadata types.
This patch introduces dummy function and necessary definitions.

Signed-off-by: Krzysztof Wojcik <redacted>
---

 Grow.c        |    7 ++++---
 super-intel.c |   12 ++++++++++++
 2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/Grow.c b/Grow.c
index 8fdb597..9e0a51d 100644
--- a/Grow.c
+++ b/Grow.c
@@ -1941,9 +1941,10 @@ static int reshape_array(char *container, int fd, char *devname,
 	if (st->ss->external) {
 		/* metadata handler takes it from here */
 		ping_manager(container);
-		st->ss->manage_reshape(st, backup_file);
-		frozen = 0;
-		goto release;
+		if (st->ss->manage_reshape(st, backup_file) != 1) {
+			frozen = 0;
+			goto release;
+		}
 	}
 
 	/* set up the backup-super-block.  This requires the
diff --git a/super-intel.c b/super-intel.c
index c4100ef..17737cf 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -6432,6 +6432,17 @@ static int imsm_reshape_super(struct supertype *st, long long size, int level,
 	return ret_val;
 }
 
+/* function: manage_reshape_imsm
+* Parameters: supertype structure, backup file
+* Returms:	0 on success,
+* 		-1 if failed,
+* 		1 - management of process not supported
+*/
+int manage_reshape_imsm(struct supertype *st, char *backup)
+{
+	return 1;
+}
+
 struct superswitch super_imsm = {
 #ifndef	MDASSEMBLE
 	.examine_super	= examine_super_imsm,
@@ -6469,6 +6480,7 @@ struct superswitch super_imsm = {
 	.default_geometry = default_geometry_imsm,
 	.get_disk_controller_domain = imsm_get_disk_controller_domain,
 	.reshape_super  = imsm_reshape_super,
+	.manage_reshape	= manage_reshape_imsm,
 
 	.external	= 1,
 	.name = "imsm",
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help