From: NeilBrown Date: Tue, 20 May 2014 06:59:58 +0000 (+1000) Subject: Reshape: use systemd to continue containers as well as native arrays. X-Git-Tag: mdadm-3.3.1~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e0eb0dbbd6c0a18bad2cd10bd1d427399be20b7;p=thirdparty%2Fmdadm.git Reshape: use systemd to continue containers as well as native arrays. Signed-off-by: NeilBrown --- diff --git a/Grow.c b/Grow.c index 0588590e..a5a9421b 100644 --- a/Grow.c +++ b/Grow.c @@ -3475,6 +3475,10 @@ int reshape_container(char *container, char *devname, */ ping_monitor(container); + if (!forked && !check_env("MDADM_NO_SYSTEMCTL")) + if (continue_via_systemd(container)) + return 0; + switch (forked ? 0 : fork()) { case -1: /* error */ perror("Cannot fork to complete reshape\n");