diff options
author | Mateusz Grzonka <mateusz.grzonka@intel.com> | 2021-08-30 10:25:17 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2021-10-08 12:29:51 +0200 |
commit | f7889e519965e10a8b57281ad213493fe70c998b (patch) | |
tree | 858588e770c4eee1897ffbc7a15a24f2860bb704 | |
parent | mdadm: fix coredump of mdadm --monitor -r (diff) | |
download | mdadm-f7889e519965e10a8b57281ad213493fe70c998b.tar.xz mdadm-f7889e519965e10a8b57281ad213493fe70c998b.zip |
Fix error message when creating raid 4, 5 and 10
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>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
-rw-r--r-- | Create.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |