[X,3/6] md/raid0: fix warning message for parameter default_layout
diff mbox series

Message ID 20200115091428.32502-4-stefan.bader@canonical.com
State New
Headers show
  • (Re)apply RAID0 layout support
Related show

Commit Message

Stefan Bader Jan. 15, 2020, 9:14 a.m. UTC
From: Song Liu <songliubraving@fb.com>

BugLink: https://bugs.launchpad.net/bugs/1850540

[ Upstream commit 3874d73e06c9b9dc15de0b7382fc223986d75571 ]

The message should match the parameter, i.e. raid0.default_layout.

Fixes: c84a1372df92 ("md/raid0: avoid RAID0 data corruption due to layout confusion.")
Cc: NeilBrown <neilb@suse.de>
Reported-by: Ivan Topolsky <doktor.yak@gmail.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>

Signed-off-by: dann frazier <dann.frazier@canonical.com>
(cherry picked from bionic/18.04 submission into xenial/16.04)
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
 drivers/md/raid0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c
index 0501114e5321..2e90390d4f2a 100644
--- a/drivers/md/raid0.c
+++ b/drivers/md/raid0.c
@@ -152,7 +152,7 @@  static int create_strip_zones(struct mddev *mddev, struct r0conf **private_conf)
 	} else {
 		pr_err("md/raid0:%s: cannot assemble multi-zone RAID0 with default_layout setting\n",
-		pr_err("md/raid0: please set raid.default_layout to 1 or 2\n");
+		pr_err("md/raid0: please set raid0.default_layout to 1 or 2\n");
 		err = -ENOTSUPP;
 		goto abort;