]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Fix calculations for max_progress and completed.
authorNeilBrown <neilb@suse.de>
Tue, 11 Jan 2011 23:34:44 +0000 (10:34 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 11 Jan 2011 23:34:44 +0000 (10:34 +1100)
commit92d1991fffcc56c7b7ce4667f847559e2df23449
tree1acaa05d2d5c22278209a0408395fb3135711546
parentd0ab945ee11ddc5d4ff301d09b6b91b95770bf31
Fix calculations for max_progress and completed.

'sync_completed' can sometimes have a value which is slightly high.
So round-down relevant values to new-chunk size and that is what we
want.

Subtract from component_size after scaling down rather than before as
that is easier.
Make sure max_progress never goes negative when reshaping backwards.

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