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:
Neil Brown 2007-07-09 09:59:42 +10:00
parent 5624768a4c
commit 01d9299c1a
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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