summaryrefslogtreecommitdiff
path: root/Grow.c
diff options
context:
space:
mode:
authorBaldysiak, Pawel <pawel.baldysiak@intel.com>2014-05-30 14:40:11 +0000
committerNeilBrown <neilb@suse.de>2014-06-02 12:42:01 +1000
commit40b941b813e22b33ff9c70831415f5b65e0fd70b (patch)
tree5b38cb2bee7843bdeba45d2b122f7a7368abed7e /Grow.c
parent054cba77190f1ec787e6d0fba5a5f76f03b96638 (diff)
Grow: Do not fork via systemd if freeze_reshape is set
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> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Grow.c')
-rw-r--r--Grow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Grow.c b/Grow.c
index 2de821d0..03b77f53 100644
--- a/Grow.c
+++ b/Grow.c
@@ -3471,7 +3471,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;