]> git.ipfire.org Git - thirdparty/mdadm.git/commit
FIX: External metadata sometimes is not updated
authorAdam Kwolek <adam.kwolek@intel.com>
Thu, 12 Jan 2012 07:12:39 +0000 (08:12 +0100)
committerNeilBrown <neilb@suse.de>
Mon, 30 Jan 2012 00:36:25 +0000 (11:36 +1100)
commit5d1c7cdaca575d8a32a7a82517d88e2099f6a213
tree1f3dfbf58b677af3c1101eecc000b9c94ca550c2
parent0c4304ca8b3328132537922fed8ee9e3bbb8a0fa
FIX: External metadata sometimes is not updated

External metadata sometimes is not updated.
It can be observed during 2 raid0 arrays Capacity Expansion.
New array size is not set, because metadata is not updated and on the reshape
end mdadm doesn't read new array size from metadata.
This happens when mdmon finishes his work (due to takeover to raid0),
before all metadata updates are processed.

Make sure that all updates are flushed to disk before executing takeover.

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