Re: [PATCH 1/2] mdadm: Fix array size mismatch after grow

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

 



Hi Lukasz,


> 2022年4月7日 22:27,Lukasz Florczak <lukasz.florczak@xxxxxxxxxxxxxxx> 写道:
> 
> imsm_fix_size_mismatch() is invoked to fix the problem, but it couldn't
> proceed due to migration check. This patch allows for intended behavior.


Could you please explain a bit more about why “it couldn’t proceed due to migration”, and what is the “intended behavior”?
It may help me to understand your change and response faster.

Thank you in advance.

Coly Li

> 
> Signed-off-by: Lukasz Florczak <lukasz.florczak@xxxxxxxxxxxxxxx>
> ---
> super-intel.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/super-intel.c b/super-intel.c
> index d5fad102..102689bc 100644
> --- a/super-intel.c
> +++ b/super-intel.c
> @@ -11757,7 +11757,7 @@ static int imsm_fix_size_mismatch(struct supertype *st, int subarray_index)
> 		unsigned long long d_size = imsm_dev_size(dev);
> 		int u_size;
> 
> -		if (calc_size == d_size || dev->vol.migr_type == MIGR_GEN_MIGR)
> +		if (calc_size == d_size)
> 			continue;
> 
> 		/* There is a difference, confirm that imsm_dev_size is
> -- 
> 2.27.0
> 





[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