diff options
author | Baldysiak, Pawel <pawel.baldysiak@intel.com> | 2014-05-30 14:40:11 +0000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2014-06-02 12:42:01 +1000 |
commit | 40b941b813e22b33ff9c70831415f5b65e0fd70b (patch) | |
tree | 5b38cb2bee7843bdeba45d2b122f7a7368abed7e /Grow.c | |
parent | 054cba77190f1ec787e6d0fba5a5f76f03b96638 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |