Re: [PATCH] fix: correct extending size of raid0 array

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

 



On Fri, 20 Apr 2012 11:00:25 +0200 Lukasz Dorau <lukasz.dorau@xxxxxxxxx>
wrote:

> Setting "sync_action" to "idle" while extending size of raid0 array
> is racy and sometimes fails.
> "sync_action" should be set to "frozen" instead.
> 
> Signed-off-by: Lukasz Dorau <lukasz.dorau@xxxxxxxxx>
> ---
>  Grow.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/Grow.c b/Grow.c
> index 389992e..b4b9ff2 100644
> --- a/Grow.c
> +++ b/Grow.c
> @@ -1749,7 +1749,7 @@ int Grow_reshape(char *devname, int fd, int quiet, char *backup_file,
>  			/* do not recync non-existing parity,
>  			 * we will drop it anyway
>  			 */
> -			sysfs_set_str(sra, NULL, "sync_action", "idle");
> +			sysfs_set_str(sra, NULL, "sync_action", "frozen");
>  			/* go back to raid0, drop parity disk
>  			 */
>  			sysfs_set_str(sra, NULL, "level", "raid0");

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