linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix --update=homehost
@ 2012-07-10 19:45 Justin Maggard
  0 siblings, 0 replies; only message in thread
From: Justin Maggard @ 2012-07-10 19:45 UTC (permalink / raw)
  To: linux-raid; +Cc: Justin Maggard

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-10 19:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-10 19:45 [PATCH] Fix --update=homehost Justin Maggard

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).