]> git.ipfire.org Git - thirdparty/mdadm.git/commit - managemon.c
Add updating component_size to manager thread of mdmon
authorPawel Baldysiak <pawel.baldysiak@intel.com>
Wed, 3 Apr 2013 01:43:42 +0000 (12:43 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 8 Apr 2013 01:32:53 +0000 (11:32 +1000)
commit4edb8530e889fc7b5e1b5471a0fbfd6c3c116b4a
tree9b13c2e1c52e917831f36429d57f414b0d0690ae
parent5e73b02409e55b1f8e48e7b933d97a73ff2e66d3
Add updating component_size to manager thread of mdmon

Mdmon does not update component_size now. It is wrong because in case
of size's expansion component_size is changed by mdadm but mdmon does not
reread its new value and uses a wrong, old one. As a result the metadata
is incorrect during size's expansion. It contains no information that
resync is in progress (there is no checkpoint too). The metadata is
as if resync has already been finished but it has not.

Component_size will be set to match information in sysfs. This value
will be updated by manager thread in manage_member() function.
Now mdmon uses the correct, current value of component_size and the
correct metadata (containing information about resync and checkpoint)
is written.

Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
managemon.c