From 0db17fcbde740232955a7d5fd57896d8894c9eb5 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 26 Jul 2001 20:47:22 +0000 Subject: [PATCH] mdctl-v0.4.2 --- Assemble.c | 2 +- ReadMe.c | 2 +- TODO | 3 +++ config.c | 6 ++++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Assemble.c b/Assemble.c index fe0b99ae..e5210ce6 100644 --- a/Assemble.c +++ b/Assemble.c @@ -341,7 +341,7 @@ int Assemble(char *mddev, int mdfd, /* First, add the raid disks */ for (i=0; i= 0 && devices[j].uptodate) { mdu_disk_info_t disk; memset(&disk, 0, sizeof(disk)); disk.major = devices[j].major; diff --git a/ReadMe.c b/ReadMe.c index c28b18ba..ccfdaac9 100644 --- a/ReadMe.c +++ b/ReadMe.c @@ -29,7 +29,7 @@ #include "mdctl.h" -char Version[] = Name " - v0.4.1 - 26 July 2001\n"; +char Version[] = Name " - v0.4.2 - 27 July 2001\n"; /* * File: ReadMe.c * diff --git a/TODO b/TODO index c4d1309a..017bcac8 100644 --- a/TODO +++ b/TODO @@ -20,3 +20,6 @@ - when --assemble --scan, if an underlying device is an md device, then try to assemble that device first. + + +- mdctl -S /dev/md0 /dev/md1 gives internal error diff --git a/config.c b/config.c index 4437de7b..2feaae39 100644 --- a/config.c +++ b/config.c @@ -216,6 +216,7 @@ int devline(char *line) } mddev_uuid_t uuidlist = NULL; +mddev_uuid_t *uidlp = &uuidlist; void arrayline(char *line) { @@ -254,8 +255,9 @@ void arrayline(char *line) mu = malloc(sizeof(*mu)); mu->devname = strdup(dev); memcpy(mu->uuid, uuid, sizeof(uuid)); - mu->next = uuidlist; - uuidlist = mu; + mu->next = NULL; + *uidlp = mu; + uidlp = &mu->next; } } -- 2.39.2