]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Detail: show which 'set' each device in a RAID10 belongs to
authorNeilBrown <neilb@suse.de>
Wed, 30 May 2012 03:08:39 +0000 (13:08 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 30 May 2012 03:08:39 +0000 (13:08 +1000)
commit2c096ebe4b8f38faf701286852dbfd5939cfee47
tree5ba4063aa3a2165f139a8fe18cd844c1cdb2f7da
parent5e311406c499a9a54dffa4bad950f59aaa6160d3
Detail: show which 'set' each device in a RAID10 belongs to

A RAID10 can be though of as having 2 sets of devices
(if there are 2 copies and an even number of devices in total).

With this patch "mdadm --detail" shows which 'set' each device
belongs to - set-A or set-B.

If there are more than 3 copies, there can be more than 3 sets.

If the number of copies does not evenly divide the number of devices,
there are not distinct 'sets' so none are reported.

Signed-off-by: NeilBrown <neilb@suse.de>
Detail.c