]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
dm raid1: report fault status
authorJonathan Brassow <jbrassow@redhat.com>
Fri, 8 Feb 2008 02:11:39 +0000 (02:11 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 8 Feb 2008 02:11:39 +0000 (02:11 +0000)
commitaf195ac82e38ba802fd86b5a014ed05ef6dd88bb
tree661e5848dd970f6213cbcf181818f234cef2c571
parent06386bbfd2441416875d0403d405c56822f6ebac
dm raid1: report fault status

This patch adds extra information to the mirror status output, so that
it can be determined which device(s) have failed.  For each mirror device,
a character is printed indicating the most severe error encountered.  The
characters are:
 *    A => Alive - No failures
 *    D => Dead - A write failure occurred leaving mirror out-of-sync
 *    S => Sync - A sychronization failure occurred, mirror out-of-sync
 *    R => Read - A read failure occurred, mirror data unaffected
This allows userspace to properly reconfigure the mirror set.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-raid1.c