From 947fd4ddb554fd2c3d81c190dfe63407f8771eb8 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 9 Aug 2005 05:23:20 +0000 Subject: Support nameing of version-1 arrays. --name is recognised in --create and --assemble name= is recognised in config file. Signed-off-by: Neil Brown --- super0.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'super0.c') diff --git a/super0.c b/super0.c index e336439..f355fa7 100644 --- a/super0.c +++ b/super0.c @@ -223,7 +223,7 @@ static void uuid_from_super0(int uuid[4], void * sbv) } } -static void getinfo_super0(struct mdinfo *info, void *sbv) +static void getinfo_super0(struct mdinfo *info, mddev_ident_t ident, void *sbv) { mdp_super_t *sb = sbv; int working = 0; @@ -246,7 +246,8 @@ static void getinfo_super0(struct mdinfo *info, void *sbv) info->events = md_event(sb); uuid_from_super0(info->uuid, sbv); - + + ident->name[0] = 0; /* work_disks is calculated rather than read directly */ for (i=0; i < MD_SB_DISKS; i++) if ((sb->disks[i].state & (1<