linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* FW: [PATCH 2/2] Grow: Do not fork via systemd if freeze_reshape is set
@ 2014-05-30 14:40 Baldysiak, Pawel
  2014-06-02  2:42 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Baldysiak, Pawel @ 2014-05-30 14:40 UTC (permalink / raw)
  To: neilb@suse.de; +Cc: linux-raid@vger.kernel.org, Paszkiewicz, Artur

Mdadm should not run 'grow-continue' unit file for container if
'--freeze-reshape' argument is passed. Otherwise it will be ignored,
and reshape will start anyway.

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

diff --git a/Grow.c b/Grow.c
index 158a709..487111e 100644
--- a/Grow.c
+++ b/Grow.c
@@ -3472,7 +3472,7 @@ int reshape_container(char *container, char *devname,
                */
               ping_monitor(container);

-              if (!forked && !check_env("MDADM_NO_SYSTEMCTL"))
+             if (!forked && !freeze_reshape && !check_env("MDADM_NO_SYSTEMCTL"))
                               if (continue_via_systemd(container))
                                               return 0;

-- 
1.9.0
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2014-06-02  2:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-30 14:40 FW: [PATCH 2/2] Grow: Do not fork via systemd if freeze_reshape is set Baldysiak, Pawel
2014-06-02  2:42 ` 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).