# Re: \[PATCH\] Do not set default 'before.layout' when reshaping from RAID4 to RAID4

- From: NeilBrown \<hidden\>
- Date: 2014-06-02 02:30:21 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2014/06/6627482
- Thread: https://ratatoskr.run/linux-raid/2014/05/6627465/t.md

```text
On Fri, 30 May 2014 14:38:09 +0000 "Baldysiak, Pawel"
[ref] wrote:

> Commit fdcad551e9a54c4aa8c4b63160b76e2c539a0441
> brings some changes to reshape process.
> Setting 'before.layout' when reshaping from RAID4 to another RAID4 is
> not really necessary.
> If reshape is restarted 'before.layout' will be compared with
> 'info->array.layout' in reshape_array(). Changes brought by mentioned
> commit will cause this comparation return as false, becouse 'array.layout'
> is always set to 'ALGORITHM_PARITY_N' in analyse_change() for RAID4, so
> reshape will not be continued after reboot/stop.
> This patch reverts unnecessary changes.
> 
> Signed-off-by: Pawel Baldysiak <redacted>
> Reviewed-by: Artur Paszkiewicz <redacted>
> 
> ---
> Grow.c | 1 -
> 1 file changed, 1 deletion(-)
> 
> diff --git a/Grow.c b/Grow.c
> index 487111e..9dc157a 100644
> --- a/Grow.c
> +++ b/Grow.c
> @@ -1338,7 +1338,6 @@ char *analyse_change(char *devname, struct mdinfo *info, struct reshape *re)
> 
>                                 switch (re->level) {
>                                case 4:
> -                                              re->before.layout = 0;
>                                                re->after.layout = 0;
>                                                break;
>                                case 5:

Applied, thanks.  Though you seem to have forgotten how to make patches
properly.  That one was totally white-space damaged.

NeilBrown
```

## Attachments

- [signature.asc](https://ratatoskr.run/linux-raid/2014/06/6627482/attachment/0) (application/pgp-signature, 828 bytes)
