Report which device failed in a Fail message.
Signed-off-by: Neil Brown <neilb@suse.de>
This commit is contained in:
parent
47d79ef8e5
commit
fe394e5e42
|
@ -10,6 +10,8 @@ Changes Prior to this release
|
|||
- Allow scanning of devices listed in /proc/partitions even
|
||||
if they don't appear in /dev.
|
||||
- Support --assume-clean in --create mode as well as --build
|
||||
- --monitor now reports which device failed in a 'Fail' message
|
||||
This broke with 2.6
|
||||
|
||||
Changes Prior to 2.1 release
|
||||
- Fix assembling of raid10 array when devices are missing.
|
||||
|
|
|
@ -313,6 +313,9 @@ int Monitor(mddev_dev_t devlist,
|
|||
case 'U': newstate = 6 /* ACTIVE/SYNC */; break;
|
||||
case '_': newstate = 0; break;
|
||||
}
|
||||
if (dv == NULL && st->devid[i])
|
||||
dv = map_dev(major(st->devid[i]),
|
||||
minor(st->devid[i]));
|
||||
change = newstate ^ st->devstate[i];
|
||||
if (st->utime && change && !st->err) {
|
||||
if (i < (unsigned)array.raid_disks &&
|
||||
|
|
Loading…
Reference in New Issue