]> git.karo-electronics.de Git - karo-tx-linux.git/commit
DM RAID: Add support for MD's RAID10 "far" and "offset" algorithms
authorJonathan Brassow <jbrassow@redhat.com>
Mon, 7 Jan 2013 22:09:41 +0000 (16:09 -0600)
committerNeilBrown <neilb@suse.de>
Mon, 4 Feb 2013 22:24:36 +0000 (09:24 +1100)
commit898df86f20aff4682e830c610c84a0549942ed88
tree25b318039be657ca5558f01727d90f5dd4b7c93f
parentbe7a0a002b070f86ba46ca448251735ed5cbdd21
DM RAID: Add support for MD's RAID10 "far" and "offset" algorithms

DM RAID:  Add support for MD's RAID10 "far" and "offset" algorithms

Until now, dm-raid.c only supported the "near" algorthm of MD's RAID10
implementation.  This patch adds support for the "far" and "offset"
algorithms, but only with the improved redundancy that is brought with
the introduction of the 'use_far_sets' bit, which shifts copied stripes
according to smaller sets vs the entire array.  That is, the 17th bit
of the 'layout' variable that defines the RAID10 implementation will
always be set.   (More information on how the 'layout' variable selects
the RAID10 algorithm can be found in the opening comments of
drivers/md/raid10.c.)

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Documentation/device-mapper/dm-raid.txt
drivers/md/dm-raid.c