diff options
author | NeilBrown <neilb@suse.de> | 2006-06-27 17:06:05 +1000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2006-06-27 08:03:08 -0700 |
commit | 6fef631f332c1e66f24c8d9676b8b15082fe2f02 (patch) | |
tree | ec8db7896ece612f9a6fa04a5e6611f004576de6 | |
parent | 17561350fb0a32fde4073170c650a4f3349a66ff (diff) | |
download | klibc-6fef631f332c1e66f24c8d9676b8b15082fe2f02.tar.gz |
md: Fix "Will Configure" message when interpreting md= kernel parameter.klibc-1.4.8
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
-rw-r--r-- | usr/kinit/do_mounts_md.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/kinit/do_mounts_md.c b/usr/kinit/do_mounts_md.c index 1a62db8bf710c..b3861809e2eee 100644 --- a/usr/kinit/do_mounts_md.c +++ b/usr/kinit/do_mounts_md.c @@ -205,8 +205,8 @@ static int md_setup(char *str) 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; |