mdctl-v0.4.2
This commit is contained in:
parent
5e52ae9ed0
commit
0db17fcbde
|
@ -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;
|
||||
|
|
2
ReadMe.c
2
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
|
||||
*
|
||||
|
|
3
TODO
3
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
|
||||
|
|
6
config.c
6
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue