From: Song Liu Date: Mon, 21 Dec 2015 19:23:41 +0000 (-0800) Subject: move journal to end of --detail list X-Git-Tag: mdadm-3.4~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fe4c6160399c94a15eda6092371e0ac9a38a4bc;p=thirdparty%2Fmdadm.git move journal to end of --detail list As we give journal device raid_disk of 0, the output of --detail is: Number Major Minor RaidDevice State 0 8 17 0 active sync /dev/sdb1 5 8 24 0 journal /dev/sdb8 1 8 18 1 active sync /dev/sdb2 2 8 19 2 active sync /dev/sdb3 3 8 21 3 active sync /dev/sdb5 4 8 23 - spare /dev/sdb7 This patch makes it back to: Number Major Minor RaidDevice State 0 8 17 0 active sync /dev/sdb1 1 8 18 1 active sync /dev/sdb2 2 8 19 2 active sync /dev/sdb3 3 8 21 3 active sync /dev/sdb5 4 8 23 - spare /dev/sdb7 5 8 24 - journal /dev/sdb8 Signed-off-by: Song Liu Signed-off-by: Shaohua Li Signed-off-by: NeilBrown --- diff --git a/Detail.c b/Detail.c index 5bd2dc64..37403d6b 100644 --- a/Detail.c +++ b/Detail.c @@ -326,7 +326,8 @@ int Detail(char *dev, struct context *c) && disks[disk.raid_disk*2].state == (1<= 0 && disk.raid_disk < array.raid_disks - && disks[disk.raid_disk*2+1].state == (1<