]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Grow.c
Set correct reshape restart position
authorAdam Kwolek <adam.kwolek@intel.com>
Wed, 5 Oct 2011 03:00:00 +0000 (14:00 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 5 Oct 2011 03:00:00 +0000 (14:00 +1100)
commit6937e6d21698b7a81aff9a116a6e09659defbe91
tree2f88ba3b3531acd76e91479d1901df525b7a1c45
parenta93ada3b7d301eee390d35a39c23ce061de76820
Set correct reshape restart position

This patch version is simplified compared to previous one.
There is no use of freeze_reshape flag in start_reshape(). It is assumed
that for reshape starting condition reshape_progress field contains
0 value /correct start position/. For reshape restart case, it contains
correct restart position. This approach doesn't make start_reshape()
difficult to read/manage and /imho/ kernel changes to change mdstat
reporting behavior are not necessary.

Setting correct position allows user to see it in the mdstat during
reshape restart and reshape process is not reported as resync.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c