Re: [PATCH 2/2] Grow: Do not fork via systemd if freeze_reshape is set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 30 May 2014 14:40:11 +0000 "Baldysiak, Pawel"
<pawel.baldysiak@xxxxxxxxx> wrote:

> 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@xxxxxxxxx>
> Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@xxxxxxxxx>
> ---
> Grow.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Grow.c b/Grow.c
> index 158a709..487111e 100644
> --- a/Grow.c
> +++ b/Grow.c
> @@ -3472,7 +3472,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;
> 

Applied - thanks.

NeilBrown

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux