]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Manage.c
Manage: fix the mess I made in earlier patch.
authorNeilBrown <neilb@suse.de>
Fri, 18 Mar 2011 01:31:45 +0000 (12:31 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 18 Mar 2011 01:31:45 +0000 (12:31 +1100)
commitd6221e667f55c46505125ae182051de499000ed8
treea0774b3a0df793772d34dc7daf5752a87dda2957
parenteb0af52689656f6526540ee3a72b0647e7a7b20d
Manage: fix the mess I made in earlier patch.

When I separated the 'native metadata' case more cleanly from the
"external metadata" case for adding a drive, I left some 'external'
code in the 'native' case, and didn't copy it to the 'external' case.

When - in the external case - we add to super, we much check for
mdmon first, so we know whether to do the metadata update ourselves
or not, then afterwards call either flush_metadata_updates (to send
to mdmon) or sync_metadata (to do it directly).

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