From: Justin Maggard <jmaggard10@gmail.com>
To: linux-raid@vger.kernel.org
Cc: Justin Maggard <jmaggard10@gmail.com>
Subject: [PATCH] Fix --update=homehost
Date: Tue, 10 Jul 2012 12:45:42 -0700 [thread overview]
Message-ID: <1341949542-9852-1-git-send-email-jmaggard10@gmail.com> (raw)
The --update=homehost mdadm option does not actually update the
name field. Fix it by recursively calling update_super1();
Signed-off-by: Justin Maggard <jmaggard10@gmail.com>
---
super1.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/super1.c b/super1.c
index b04945f..5aac5da 100644
--- a/super1.c
+++ b/super1.c
@@ -824,6 +824,7 @@ static int update_super1(struct supertype *st, struct mdinfo *info,
else
strncpy(info->name, sb->set_name, 32);
info->name[32] = 0;
+ update_super1(st, info, update, devname, verbose, uuid_set, homehost);
} else if (strcmp(update, "name") == 0) {
if (info->name[0] == 0)
sprintf(info->name, "%d", info->array.md_minor);
--
1.7.9.5
reply other threads:[~2012-07-10 19:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1341949542-9852-1-git-send-email-jmaggard10@gmail.com \
--to=jmaggard10@gmail.com \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).