Re: [PATCH 7/7] FIX: start_reshape status should be checked

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

 



On Wed, 26 Jan 2011 16:04:06 +0100
Adam Kwolek <adam.kwolek@xxxxxxxxx> wrote:

> mdadm should verify if reshape is started before it goes
> in to check-pointing machine.
> 
> Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx>
> ---
> 
>  Grow.c |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)
> 
> diff --git a/Grow.c b/Grow.c
> index dae1b32..a60129a 100644
> --- a/Grow.c
> +++ b/Grow.c
> @@ -1934,7 +1934,12 @@ started:
>  		}
>  	}
>  
> -	start_reshape(sra);
> +	err = start_reshape(sra);
> +	if (err) {
> +		fprintf(stderr, Name ": Cannot start reshape for
> %s\n",
> +			devname);
> +		goto release;
> +	}
>  	if (restart)
>  		sysfs_set_str(sra, NULL, "array_state", "active");
>  

Applied, thanks.

NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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