]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Fix spare migration and other problems with --monitor.
authorNeil Brown <neilb@suse.de>
Sun, 8 Jul 2007 23:59:42 +0000 (09:59 +1000)
committerNeil Brown <neilb@suse.de>
Sun, 8 Jul 2007 23:59:42 +0000 (09:59 +1000)
2.6 broke --monitor in various ways, including spare migration
stopped working.  This fixes it.

Monitor.c
mdadm.8

index ece6abb78f637010d32314260bd10e38629a4e47..92936374163a6a5508833d2d4bf6ccfbd3d03700 100644 (file)
--- a/Monitor.c
+++ b/Monitor.c
@@ -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;
diff --git a/mdadm.8 b/mdadm.8
index ce88d04b3a61eea97b97cc41392b85e6f617696f..25a6758f4dd2c42d4c765491affef3a4bf908c8c 100644 (file)
--- a/mdadm.8
+++ b/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