[PATCH] Fix --update=homehost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux