md: Fix "Will Configure" message when interpreting md= kernel parameter.
If a partitionable array is used, we should say e.g.
Will configure md_d0 (super-block) from ....
rather than
Will configure md0 (super-block) from ....
which implies non-partitionable.
Signed-off-by: Neil Brown <neilb@suse.de>
### Diffstat output
./usr/kinit/do_mounts_md.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff .prev/usr/kinit/do_mounts_md.c ./usr/kinit/do_mounts_md.c
diff --git a/usr/kinit/do_mounts_md.c b/usr/kinit/do_mounts_md.c
index 1a62db8..b386180 100644
--- a/usr/kinit/do_mounts_md.c
+++ b/usr/kinit/do_mounts_md.c
@@ -205,8 +205,8 @@
pername = "super-block";
}
- fprintf(stderr, "md: Will configure md%d (%s) from %s, below.\n",
- minor, pername, str);
+ fprintf(stderr, "md: Will configure md%s%d (%s) from %s, below.\n",
+ partitioned?"_d":"", minor, pername, str);
md_setup_args[ent].device_names = str;
md_setup_args[ent].partitioned = partitioned;
md_setup_args[ent].minor = minor;