]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: Prepare reshape_update in mdadm
authorNeilBrown <neilb@suse.de>
Thu, 16 Dec 2010 00:45:21 +0000 (11:45 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 16 Dec 2010 00:45:21 +0000 (11:45 +1100)
commit78b10e663c35a301406facbda3f5be02973e2ba4
tree545b594c2e7f1e6f8ea3f5192d49435925b25995
parent94827db3b336c59c23bb1c29692d5045af7f4bec
imsm: Prepare reshape_update in mdadm

During Online Capacity Expansion metadata has to be updated to show
array changes and allow for future assembly of array.  To do this
mdadm prepares and sends reshape_update metadata update to mdmon.
The update contains the old and new number of raid disks, and the
indices of the spare disks that will be used to fill the spaces.

This works as follows:
1. reshape_super() prepares metadata update.
2. mdadm discovers the spares and adds them to the array
3. mdadm sends the update to mdmon
4. managemon in prepare_update() allocates required memory for bigger
   device object
5. monitor in process_update() updates the metadata to record the
   new sizes and the newly assigned devices.
6. mdadm initiates the reshape

Based on code From: Adam Kwolek <adam.kwolek@intel.com>

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