diff options
author | Neil Brown <neilb@suse.de> | 2001-07-26 22:47:22 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2001-07-26 22:47:22 +0200 |
commit | 0db17fcbde740232955a7d5fd57896d8894c9eb5 (patch) | |
tree | 169ec3c3342de25f70204f7ee5ef5eadad0f1e16 | |
parent | mdctl-v0.4.1 (diff) | |
download | mdadm-0db17fcbde740232955a7d5fd57896d8894c9eb5.tar.xz mdadm-0db17fcbde740232955a7d5fd57896d8894c9eb5.zip |
mdctl-v0.4.2mdctl-v0.4.2
-rw-r--r-- | Assemble.c | 2 | ||||
-rw-r--r-- | ReadMe.c | 2 | ||||
-rw-r--r-- | TODO | 3 | ||||
-rw-r--r-- | config.c | 6 |
4 files changed, 9 insertions, 4 deletions
@@ -341,7 +341,7 @@ int Assemble(char *mddev, int mdfd, /* First, add the raid disks */ for (i=0; i<first_super.raid_disks; i++) { int j = best[i]; - if (devices[j].uptodate) { + if (j >= 0 && devices[j].uptodate) { mdu_disk_info_t disk; memset(&disk, 0, sizeof(disk)); disk.major = devices[j].major; @@ -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 * @@ -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 @@ -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; } } |