dm raid: change raid4/5/6 journal device status health char to 'A' rather than 'J'
Subsystems (2)
PATCH 1/1 dm raid: change raid4/5/6 journal device status health char to 'A' rather than 'J'
There's no need to create a tautology by introducing a new device health char 'J', because the position of the status line field uniquely defines the char refering to the journal.
This patch is on top of
"[PATCH v2] dm raid: add raid4/5/6 journaling support" dated 11/30/2016.
Related: rhbz1400194
Signed-off-by Heinz Mauelshagen <[email protected]>
--- Documentation/device-mapper/dm-raid.txt | 2 +- drivers/md/dm-raid.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-)
Documentation/device-mapper/dm-raid.txt +1 -1
@@ -254,7 +254,7 @@ recovery. Here is a fuller description of the individual fields: <data_offset> The current data offset to the start of the user data on each component device of a raid set (see the respective raid parameter to support out-of-place reshaping). - <journal_char> 'J' - active raid4/5/6 journal device. + <journal_char> 'A' - active raid4/5/6 journal device. 'D' - dead journal device. '-' - no journal device.
drivers/md/dm-raid.c +3 -4
@@ -3170,17 +3170,16 @@ static const char *decipher_sync_action(struct mddev *mddev)* * Status characters: * -* 'D' = Dead/Failed device +* 'D' = Dead/Failed raid set component or raid4/5/6 journal device * 'a' = Alive but not in-sync -* 'A' = Alive and in-sync -* 'J' = Journal device (raid4/5/6) +* 'A' = Alive and in-sync raid set component or alive raid4/5/6 journal device */ static const char *__raid_dev_status (struct md_rdev *rdev,bool array_in_sync) {if (test_bit (Faulty, &rdev->flags))return "D" ;else if (test_bit (Journal, &rdev->flags)) -return "J" ; +return "A" ;else if (!array_in_sync || !test_bit (In_sync, &rdev->flags))return "a" ;else
Signature · 1 line
2.9.3