dm: raid fix device status indicator when array initializing
authorJonathan E Brassow <jbrassow@redhat.com>
Mon, 31 Oct 2011 20:21:26 +0000 (20:21 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Mon, 31 Oct 2011 20:21:26 +0000 (20:21 +0000)
commit2e727c3ca1beff05f27b6207a795790f222bf8d8
treed00c9aeea0173051fe3bbd4398697acab9ab61ca
parent5a25f0eb707bbb4a5aaaf19c933605a6dbaf77a5
dm: raid fix device status indicator when array initializing

When devices in a RAID array are not in-sync, they are supposed to be
reported as such in the status output as an 'a' character, which means
"alive, but not in-sync".  But when the entire array is rebuilt 'A' is
being used, which is incorrect.  This patch corrects this to 'a'.

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