From 05697ec1e26eadc2f814d9f84f8c783fff5b98b5 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Fri, 19 May 2006 06:56:06 +0000 Subject: Make homehost information appear in superblock. When an array is created, if the homehost is know, the superblock gets it, either in the uuid, (via sha1) or in the name field. Signed-off-by: Neil Brown --- Create.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Create.c') diff --git a/Create.c b/Create.c index fe7a3ab..ed81122 100644 --- a/Create.c +++ b/Create.c @@ -33,7 +33,7 @@ int Create(struct supertype *st, char *mddev, int mdfd, int chunk, int level, int layout, unsigned long long size, int raiddisks, int sparedisks, - char *name, + char *name, char *homehost, int subdevs, mddev_dev_t devlist, int runstop, int verbose, int force, int assume_clean, char *bitmap_file, int bitmap_chunk, int write_behind, int delay) @@ -389,7 +389,7 @@ int Create(struct supertype *st, char *mddev, int mdfd, array.chunk_size = chunk*1024; array.major_version = st->ss->major; - if (!st->ss->init_super(st, &super, &array, size, name)) + if (!st->ss->init_super(st, &super, &array, size, name, homehost)) return 1; if (bitmap_file && vers < 9003) { -- cgit