linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] imsm: fix, check all volumes state in Grow_continue function
@ 2011-11-23 15:26 Labun, Marcin
  2011-11-24  5:27 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Labun, Marcin @ 2011-11-23 15:26 UTC (permalink / raw)
  To: neilb@suse.de; +Cc: linux-raid@vger.kernel.org

The Grow_continue grows all volumes in the container that are in container
reshape state, therefore we  need to check blocking bits
of all volumes in container, not just the one that is pointed by the command
line argument.

Signed-off-by: Marcin Labun <marcin.labun@intel.com>
---
 Grow.c |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/Grow.c b/Grow.c
index e7fd7c4..65aa851 100644
--- a/Grow.c
+++ b/Grow.c
@@ -3769,18 +3769,19 @@ int Grow_continue_command(char *devname, int fd,
 			goto Grow_continue_command_exit;
 		}
 
-		cc = st->ss->container_content(st, subarray);
+		cc = st->ss->container_content(st, NULL);
 		for (content = cc; content ; content = content->next) {
 			char *array;
 			int allow_reshape = 1;
 
 			if (content->reshape_active == 0)
 				continue;
-			/* The decision about array or container wide
-			 * reshape is taken in Grow_continue based
-			 * content->reshape_active state, therefore we
-			 * need to check_reshape based on
-			 * reshape_active and subarray name
+			/* The Grow_continue grows all volumes
+			 * in the container that are in container
+			 * reshape state, 
+			 * therefore we  need to check blocking bits
+			 * of all volumes in container, not just the 
+			 * one that is pointed by command line argument.
 			 */
 			if (content->array.state & (1<<MD_SB_BLOCK_VOLUME))
 				allow_reshape = 0;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-24  5:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-23 15:26 [PATCH] imsm: fix, check all volumes state in Grow_continue function Labun, Marcin
2011-11-24  5:27 ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).