]> git.ipfire.org Git - thirdparty/mdadm.git/commit
FIX: Fiddle raid_disks number when restarting reshape
authorAdam Kwolek <adam.kwolek@intel.com>
Mon, 18 Apr 2011 00:31:06 +0000 (10:31 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 18 Apr 2011 00:31:06 +0000 (10:31 +1000)
commit178b8f353c4b4ffdf3bd4cd8c9dde37f64097da8
tree52b21f2f7ec53c387733200f5a484febd0d70c95
parentcd0430a17cddf5a05483f42a45cb791aab285ed0
FIX: Fiddle raid_disks number when restarting reshape

When restarting a reshape, the value of 'raid_disks' is the *new*
value.  The old value is found by subtracting delta_disks.
So before calling analyse_change we must set raid_disks to be the
old value, and then reset it afterwards.

All other fields are cleanly separated with the main field being
the 'old' value and a new_* field available.

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