Skip to content

Commit

Permalink
dm raid: add reshaping support to the target
Browse files Browse the repository at this point in the history
Add bool functions rs_is_recovering and rs_is_reshaping()
to test for ongoing recovery/reshaping respectively in order
to reject respective requests on ongoing ones.

Remove ctr array size check, because ti->len and array
sectors will differ during disk addition/removal reshape.

Use __is_raid10_near() rather than type string compare.

Introduce rs_check_reshape() and rs_start_reshape(),
use the former in the ctr to reject bogus rehsape requests
and the latter in preresume to actually start a reshape.

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
mauelsha authored and snitm committed Jun 14, 2016
1 parent 40ba37e commit 9dbd1aa
Showing 1 changed file with 447 additions and 58 deletions.

0 comments on commit 9dbd1aa

Please sign in to comment.