Re: [PATCH] Fix error message when creating raid 4, 5 and 10

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

 



On 8/30/21 4:25 AM, Mateusz Grzonka wrote:
> Change inappropriate error message "at least 2 raid-devices needed for
> level 4 or 5" to only mention relevant raid level.
> 
> Signed-off-by: Mateusz Grzonka <mateusz.grzonka@xxxxxxxxx>

Looks good, applied!

Thanks,
Jes


> ---
>  Create.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Create.c b/Create.c
> index f5d57f8c..2c0b17e9 100644
> --- a/Create.c
> +++ b/Create.c
> @@ -153,7 +153,7 @@ int Create(struct supertype *st, char *mddev,
>  		return 1;
>  	}
>  	if (s->raiddisks < 2 && s->level >= 4) {
> -		pr_err("at least 2 raid-devices needed for level 4 or 5\n");
> +		pr_err("at least 2 raid-devices needed for level %d\n", s->level);
>  		return 1;
>  	}
>  	if (s->level <= 0 && s->sparedisks) {
> 




[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