From 0237e0cafd5ff70304f0b09ed452adbe0e0e6384 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 23 May 2006 05:16:32 +0000 Subject: Support --update=homehost to allow updating of homehost information. Signed-off-by: Neil Brown --- super0.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'super0.c') diff --git a/super0.c b/super0.c index d21032f..85e54fc 100644 --- a/super0.c +++ b/super0.c @@ -442,6 +442,13 @@ static int update_super0(struct mdinfo *info, void *sbv, char *update, sb->state &= ~(1<recovery_cp = 0; } + if (strcmp(update, "homehost") == 0 && + homehost) { + uuid_set = 0; + update = "uuid"; + info->uuid[0] = sb->set_uuid0; + info->uuid[1] = sb->set_uuid1; + } if (strcmp(update, "uuid") == 0) { if (!uuid_set && homehost) { unsigned char *hash = SHA1((unsigned char*)homehost, -- cgit