linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Grow: Do not use grow-continue unit file if reshape is starting
@ 2014-07-04  8:59 Baldysiak, Pawel
  2014-07-07  1:06 ` NeilBrown
  0 siblings, 1 reply; 4+ messages in thread
From: Baldysiak, Pawel @ 2014-07-04  8:59 UTC (permalink / raw)
  To: neilb@suse.de; +Cc: linux-raid@vger.kernel.org, Paszkiewicz, Artur

Mdadm should use mdadm-grow-continue unit file only if
reshape is going to be continued. Otherwise, array specific
reshape with IMSM metadata will fail to start, due to
missing information about ongoing migration -
grow-continue will try to start again the reshape process.

Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
---
 Grow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Grow.c b/Grow.c
index a2f4f14..0cd9442 100644
--- a/Grow.c
+++ b/Grow.c
@@ -3272,7 +3272,7 @@ started:
 		return 1;
 	}
 
-	if (!forked && !check_env("MDADM_NO_SYSTEMCTL"))
+	if (restart && !forked && !check_env("MDADM_NO_SYSTEMCTL"))
 		if (continue_via_systemd(container ?: sra->sys_name)) {
 			free(fdlist);
 			free(offsets);
-- 
1.9.3


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

end of thread, other threads:[~2014-07-08  1:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-04  8:59 [PATCH] Grow: Do not use grow-continue unit file if reshape is starting Baldysiak, Pawel
2014-07-07  1:06 ` NeilBrown
2014-07-07 14:18   ` Baldysiak, Pawel
2014-07-08  1:34     ` 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).