From: Neil Brown Date: Mon, 5 Dec 2005 05:54:59 +0000 (+0000) Subject: Report which device failed in a Fail message. X-Git-Tag: mdadm-2.2~5 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=commitdiff_plain;h=fe394e5e4237e9c4d36a9a507ae36e5874ec66c4 Report which device failed in a Fail message. Signed-off-by: Neil Brown --- diff --git a/ChangeLog b/ChangeLog index 57a8e828..8b358c97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/Monitor.c b/Monitor.c index 16a39b49..2b30df1d 100644 --- a/Monitor.c +++ b/Monitor.c @@ -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 &&