]> git.ipfire.org Git - thirdparty/mdadm.git/commit
move journal to end of --detail list
authorSong Liu <songliubraving@fb.com>
Mon, 21 Dec 2015 19:23:41 +0000 (11:23 -0800)
committerNeilBrown <neilb@suse.com>
Mon, 21 Dec 2015 20:50:03 +0000 (07:50 +1100)
commit6fe4c6160399c94a15eda6092371e0ac9a38a4bc
treeb6a0271c5055980ca80c2745eb0b07d33ec49f17
parent6dd16dac40010a23c4e7e14b69703f4296c60496
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 <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Detail.c