All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix error message when creating raid 4, 5 and 10
@ 2021-08-30  8:25 Mateusz Grzonka
  2021-10-08 10:30 ` Jes Sorensen
  0 siblings, 1 reply; 2+ messages in thread
From: Mateusz Grzonka @ 2021-08-30  8:25 UTC (permalink / raw)
  To: linux-raid; +Cc: jes

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@intel.com>
---
 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) {
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix error message when creating raid 4, 5 and 10
  2021-08-30  8:25 [PATCH] Fix error message when creating raid 4, 5 and 10 Mateusz Grzonka
@ 2021-10-08 10:30 ` Jes Sorensen
  0 siblings, 0 replies; 2+ messages in thread
From: Jes Sorensen @ 2021-10-08 10:30 UTC (permalink / raw)
  To: Mateusz Grzonka, linux-raid

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@intel.com>

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) {
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-08 10:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-30  8:25 [PATCH] Fix error message when creating raid 4, 5 and 10 Mateusz Grzonka
2021-10-08 10:30 ` Jes Sorensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.