Re: [PATCH] mdmon: let mdmon know the layout

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

 



On Fri, 02 Aug 2013 10:14:45 +0200 Lukasz Dorau <lukasz.dorau@xxxxxxxxx>
wrote:

> The following commit:
> 
> 	Fix is_resync_complete for RAID10
> 	commit 71d68ff62f945254240575cd836f5f2a09ced5d2
> 
> requires that mdmon knows the layout.
> So make manage_new() read the layout form sysfs.
> 
> Signed-off-by: Lukasz Dorau <lukasz.dorau@xxxxxxxxx>
> ---
>  managemon.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/managemon.c b/managemon.c
> index 6cd93e5..7033c19 100644
> --- a/managemon.c
> +++ b/managemon.c
> @@ -650,8 +650,8 @@ static void manage_new(struct mdstat_ent *mdstat,
>  		return;
>  
>  	mdi = sysfs_read(-1, mdstat->devnm,
> -			 GET_LEVEL|GET_CHUNK|GET_DISKS|GET_COMPONENT|
> -			 GET_DEGRADED|GET_SAFEMODE|
> +			 GET_LEVEL|GET_LAYOUT|GET_CHUNK|GET_DISKS|
> +			 GET_COMPONENT|GET_DEGRADED|GET_SAFEMODE|
>  			 GET_DEVS|GET_OFFSET|GET_SIZE|GET_STATE);
>  
>  	if (!mdi)

Thanks.  I applied a very similar patch from Martin Wilck instead (his came
first:-)

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