diff options
author | Neil Brown <neilb@suse.de> | 2005-12-05 06:54:59 +0100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-12-05 06:54:59 +0100 |
commit | fe394e5e4237e9c4d36a9a507ae36e5874ec66c4 (patch) | |
tree | 5033096cfe47cea402780663e6bfc1b888e71ee7 /Monitor.c | |
parent | Support --assume-clean for --create (diff) | |
download | mdadm-fe394e5e4237e9c4d36a9a507ae36e5874ec66c4.tar.xz mdadm-fe394e5e4237e9c4d36a9a507ae36e5874ec66c4.zip |
Report which device failed in a Fail message.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'Monitor.c')
-rw-r--r-- | Monitor.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 && |