]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdadm.h
imsm: Implement imsm_manage_reshape(), reshape workhorse
authorAdam Kwolek <adam.kwolek@intel.com>
Wed, 8 Jun 2011 07:09:08 +0000 (17:09 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 8 Jun 2011 07:09:08 +0000 (17:09 +1000)
commit10f228541c9ab498301cdbc7b4773819191e5168
treed8eee368fcdd00ed4ae9c743ffd0b7fdf0e875a4
parenteee67a47f26285b9b64c3c268dd422a0efa883a5
imsm: Implement imsm_manage_reshape(), reshape workhorse

Before reshape is started, mdadm should check again if there is only one
array (in container) under reshape. Then function "divides" array in to
"migration units" that can fits migration copy area and enters main loop.
It checks if current "migration unit" requires to be backed up.
If necessary mdadm saves it to copy area and updates migration record.
Then MD-driver is directed to perform reshape step (by "migration unit" size)
and checkpoint is moved forward. In this way reshape is executed until
array ends.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
mdadm.h
super-intel.c