]> git.ipfire.org Git - thirdparty/mdadm.git/commit - managemon.c
FIX: Last checkpoint is not initialized on reshape restart
authorAdam Kwolek <adam.kwolek@intel.com>
Thu, 10 Mar 2011 14:05:54 +0000 (15:05 +0100)
committerNeilBrown <neilb@suse.de>
Mon, 14 Mar 2011 07:12:57 +0000 (18:12 +1100)
commit138477db4b7e810d35fd1a8fd2d1c2f05ee55da5
treeba05cb8f2a30118fb8f8de00922a8083caac0af4
parentbcc9e9edd0669a1d99b77e38dc94ae8a644f4d36
FIX: Last checkpoint is not initialized on reshape restart

When reshape is restarted and active array in mdmon is being initialized,
mdmon has to know last checkpoint, otherwise reshape will be restarted
form '0' position.
mdadm when reshaped array is assembled stores reshape_position in sysfs
and runs mdmon. Initialize last_checkpoint in active array structure
to value present in sysfs for reshaped array start.

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