Fix spare migration and other problems with --monitor.
2.6 broke --monitor in various ways, including spare migration stopped working. This fixes it.
This commit is contained in:
parent
5624768a4c
commit
01d9299c1a
|
@ -328,6 +328,7 @@ int Monitor(mddev_dev_t devlist,
|
|||
for (i=0; i<MaxDisks && i <= array.raid_disks + array.nr_disks;
|
||||
i++) {
|
||||
mdu_disk_info_t disc;
|
||||
disc.number = i;
|
||||
if (ioctl(fd, GET_DISK_INFO, &disc) >= 0) {
|
||||
info[i].state = disc.state;
|
||||
info[i].major = disc.major;
|
||||
|
|
2
mdadm.8
2
mdadm.8
|
@ -972,6 +972,8 @@ the right thing, then the array can be successfully assembled using
|
|||
.TP
|
||||
.BR \-X ", " \-\-examine\-bitmap
|
||||
Report information about a bitmap file.
|
||||
The argument is either an external bitmap file or an array component
|
||||
in case of an internal bitmap.
|
||||
|
||||
.TP
|
||||
.BR \-R ", " \-\-run
|
||||
|
|
Loading…
Reference in New Issue