Thread (9 messages) 9 messages, 2 authors, 2011-04-19
STALE5577d

[PATCH 2/4] FIX: Fiddle raid_disks number for external metadta

From: Adam Kwolek <hidden>
Date: 2011-04-15 12:30:39
Subsystem: the rest · Maintainer: Linus Torvalds

For external metadata migration is started already.
For native metadata migration starts when md is pushed to reshape state.
Change raid disks to currently present in md to calculate required
configuration change in analyse_change() and add required disks to md.

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

 Grow.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Grow.c b/Grow.c
index 017a79d..4c221ad 100644
--- a/Grow.c
+++ b/Grow.c
@@ -1676,6 +1676,8 @@ static int reshape_array(char *container, int fd, char *devname,
 	if (info->reshape_active) {
 		int new_level = info->new_level;
 		info->new_level = UnSet;
+		if (container)
+			info->array.raid_disks -= info->delta_disks;
 		msg = analyse_change(info, &reshape);
 		info->new_level = new_level;
 		if (!restart)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help