Skip to contentSkip to conversation

Fix --update=homehost

PATCH New Justin Maggard 1 participant 1 message Jul 10, 2012 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix --update=homehost

The --update=homehost mdadm option does not actually update the name field. Fix it by recursively calling update_super1();

---
 super1.c |    1 +
 1 file changed, 1 insertion(+)
super1.c +1 -0
index b04945f..5aac5da 100644
@@ -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);
Signature · 1 line
1.7.9.5