Reshape: use systemd to continue containers as well as native arrays.
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
b0b67933dc
commit
4e0eb0dbbd
4
Grow.c
4
Grow.c
|
@ -3475,6 +3475,10 @@ int reshape_container(char *container, char *devname,
|
||||||
*/
|
*/
|
||||||
ping_monitor(container);
|
ping_monitor(container);
|
||||||
|
|
||||||
|
if (!forked && !check_env("MDADM_NO_SYSTEMCTL"))
|
||||||
|
if (continue_via_systemd(container))
|
||||||
|
return 0;
|
||||||
|
|
||||||
switch (forked ? 0 : fork()) {
|
switch (forked ? 0 : fork()) {
|
||||||
case -1: /* error */
|
case -1: /* error */
|
||||||
perror("Cannot fork to complete reshape\n");
|
perror("Cannot fork to complete reshape\n");
|
||||||
|
|
Loading…
Reference in New Issue