]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
md/raid0: fix warning message for parameter default_layout
authorSong Liu <songliubraving@fb.com>
Mon, 14 Oct 2019 23:58:35 +0000 (16:58 -0700)
committerSong Liu <songliubraving@fb.com>
Wed, 16 Oct 2019 16:43:02 +0000 (09:43 -0700)
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>
drivers/md/raid0.c

index f61693e596845aebafbbedb8f940e0eaec9b0bee..1e772287b1c8e7fa2ec54724c12d69526fbc57fa 100644 (file)
@@ -154,7 +154,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",
                       mdname(mddev));
-               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;
        }