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>
This commit is contained in:
Baldysiak, Pawel 2014-05-30 14:40:11 +00:00 committed by NeilBrown
parent 054cba7719
commit 40b941b813
1 changed files with 1 additions and 1 deletions

2
Grow.c
View File

@ -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;