]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Reshape: use systemd to continue containers as well as native arrays.
authorNeilBrown <neilb@suse.de>
Tue, 20 May 2014 06:59:58 +0000 (16:59 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 20 May 2014 07:00:27 +0000 (17:00 +1000)
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c

diff --git a/Grow.c b/Grow.c
index 0588590e877b8febd2aa31e6d7596846f89cd6e3..a5a9421b348a57151a349a370cfd3fef94a8f1b3 100644 (file)
--- 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");