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

[PATCH 02/34] FIX: Change size condition in imsm_reshape_is_allowed_on_container

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

From: Krzysztof Wojcik <redacted>

Size has to be "0" when imsm_reshape_is_allowed_on_container
function is called.

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

 super-intel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/super-intel.c b/super-intel.c
index 17737cf..06b795e 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -6149,7 +6149,7 @@ static int imsm_reshape_is_allowed_on_container(struct supertype *st,
 		"st->devnum = (%i)\n",
 		st->devnum);
 
-	if (geo->size != -1 ||
+	if (geo->size != 0 ||
 	    geo->level != UnSet ||
 	    geo->layout != UnSet ||
 	    geo->chunksize != 0 ||
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help