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

[PATCH 15/34] FIX: added disks are not used by reshape process /md/

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

md runs reshape but added disk is not touched
/proc/mdstat reports that disk is used.

To fix this let md to set slot for reshape.
It is possible that slot verification mechanism has to be added.
Second possibility is to investigate problem in md

Signed-off-by: Adam Kwolek <redacted>
---

 Grow.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Grow.c b/Grow.c
index 9801a45..c72b89f 100644
--- a/Grow.c
+++ b/Grow.c
@@ -1701,6 +1701,7 @@ static int reshape_array(char *container, int fd, char *devname,
 					/* This is a spare that wants to
 					 * be part of the array.
 					 */
+					d->disk.raid_disk = -1;
 					add_disk(fd, st, info2, d);
 				}
 			}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help